gpgme/src
Ingo Klöcker 1a9f192ab4
core: Support reading the archive to decrypt/verify directly from a file
* src/engine-gpg.c (add_file_name_arg_or_data): New.
(gpg_decrypt): Use add_file_name_arg_or_data instead of add_data for the
ciphertext.
(gpg_verify): Use add_file_name_arg_or_data instead of add_data for the
signature and the signed text.

* tests/run-decrypt.c (show_usage): New option --direct-file-io.
(main): Parse new option. If option is given, then don't open input
file, create simple data object instead of data object from stream and
set input file name on input data.
* tests/run-verify.c (show_usage): New option --direct-file-io.
(main): Parse new option. If option is given, then don't open input
files, create simple data objects instead of data objects from stream
and set input file names on input data objects.
--

This change makes it possible to tell gpg (and gpgtar) to read the
input (i.e. the signed/encrypted data or the signature or the created
archive) directly from the files with given file names instead of from
streams piped through GpgME's Data IO.

GnuPG-bug-id: 6530
2023-06-21 14:38:50 +02:00
..
.gitignore .gitignore: flesh out rules and add subdirectory-.gitignores. 2012-04-20 16:05:11 +02:00
argparse.c Fix for modern compiler. 2022-09-15 13:45:35 +09:00
argparse.h doc: Replace http: by https: in core source files. 2016-11-16 13:27:00 +01:00
assuan-support.c core: Don't use internal __assuan functions. 2022-04-05 14:42:59 +09:00
ath.c posix: Use poll instead, when available, removing use of select. 2021-11-25 11:13:17 +09:00
ath.h posix: Use poll instead, when available, removing use of select. 2021-11-25 11:13:17 +09:00
b64dec.c core: Silence newer compiler warnings. 2018-12-17 16:47:27 +01:00
ChangeLog-2011 spelling: fix misspellings 2018-11-08 12:34:27 +07:00
cJSON.c core: New data flags "io-buffer-size" and "sensitive". 2021-06-14 19:51:28 +02:00
cJSON.h spelling: fix misspellings 2018-11-08 12:34:27 +07:00
cJSON.readme doc: convert more http:// links to https:// 2018-10-18 00:28:51 -04:00
context.h core: New context flag "no-auto-check-trustdb" 2022-11-04 10:38:41 +01:00
conversion.c core: Use 64 bit instead of gpgme_off_t for some internal functions. 2023-06-15 11:01:46 +02:00
data-compat.c core: Improve the debug messages even more. 2019-06-05 15:54:55 +02:00
data-estream.c core: Protect the trace macros for fun and profit. 2018-11-16 18:17:22 +01:00
data-fd.c core: Improve the debug messages even more. 2019-06-05 15:54:55 +02:00
data-identify.c core: Also detect legacy X.509 v0 certificates. 2023-03-08 15:54:54 +01:00
data-mem.c core: Improve the debug messages even more. 2019-06-05 15:54:55 +02:00
data-stream.c core: Protect the trace macros for fun and profit. 2018-11-16 18:17:22 +01:00
data-user.c core: Protect the trace macros for fun and profit. 2018-11-16 18:17:22 +01:00
data.c core: Use 64 bit instead of gpgme_off_t for some internal functions. 2023-06-15 11:01:46 +02:00
data.h core: Use 64 bit instead of gpgme_off_t for some internal functions. 2023-06-15 11:01:46 +02:00
debug.c core: Switch to logging via gpgrt 2023-02-10 11:12:52 +01:00
debug.h core: Avoid printf format warnings due to gpgme_ssize_t. 2023-04-17 15:05:22 +02:00
decrypt-verify.c core: Allow finalization of signature verification of unencrypted data 2023-02-10 09:54:03 +01:00
decrypt.c core: Return BAD_PASSPHRASE error code on symmetric decryption. 2022-04-25 12:14:42 +02:00
delete.c core: Simplify the trace maros by using variadics. 2018-11-16 16:25:49 +01:00
dirinfo.c core,w32: Fix invocation of gpgtar 2023-04-17 14:05:35 +02:00
edit.c core: Allow nullptr for key on card-edit 2022-11-15 10:03:23 +01:00
encrypt-sign.c core: Simplify the trace maros by using variadics. 2018-11-16 16:25:49 +01:00
encrypt.c core: Simplify the trace maros by using variadics. 2018-11-16 16:25:49 +01:00
engine-assuan.c core: New function gpgme_op_revsig. 2020-10-29 12:57:10 +01:00
engine-backend.h core: Use signature modes as flags 2023-01-30 12:49:11 +01:00
engine-g13.c core: New function gpgme_op_revsig. 2020-10-29 12:57:10 +01:00
engine-gpg.c core: Support reading the archive to decrypt/verify directly from a file 2023-06-21 14:38:50 +02:00
engine-gpgconf.c core: Make the gpgconf option parsing of string types more robust 2021-11-25 11:48:11 +01:00
engine-gpgsm.c core: Send a input-size-hint for gpgsm. 2023-06-15 13:00:01 +02:00
engine-spawn.c core: New function gpgme_op_revsig. 2020-10-29 12:57:10 +01:00
engine-uiserver.c core: Use signature modes as flags 2023-01-30 12:49:11 +01:00
engine.c core: Use signature modes as flags 2023-01-30 12:49:11 +01:00
engine.h core: Use signature modes as flags 2023-01-30 12:49:11 +01:00
error.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
export.c core: Return an error for secret key export operations 2022-01-10 12:34:49 +01:00
genkey.c core: Add error handling to setexpire 2020-08-14 11:11:23 +02:00
get-env.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
getauditlog.c core: Simplify the trace maros by using variadics. 2018-11-16 16:25:49 +01:00
gpgconf.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
gpgme-config.in build: Provide gpgme.pc, generated by configure. 2018-11-12 09:03:49 +09:00
gpgme-glib.pc.in build: Provide gpgme-glib.pc too. 2018-11-12 09:59:05 +09:00
gpgme-json.c json: New operation "identify" and convenience option --identify. 2023-01-31 09:52:04 +01:00
gpgme-tool.c core: Support --locate-external-keys command of gpg 2022-04-27 16:57:17 +02:00
gpgme-w32spawn.c core,w32: Fix invocation of gpgtar 2023-04-17 14:05:35 +02:00
gpgme.c core: New context flag "no-auto-check-trustdb" 2022-11-04 10:38:41 +01:00
gpgme.def core: Support usage of gpgtar for verifying a signed archive 2023-01-25 11:26:34 +01:00
gpgme.h.in core,cpp: Add new key flags to gpgme_subkey_t 2023-03-21 08:37:47 +01:00
gpgme.m4 gpgme.m4: Fix AM_PATH_GPGME_PTHREAD. 2022-11-25 15:37:23 +09:00
gpgme.pc.in build: Omit -I... and -L... for standard paths in pkgconfig file 2022-08-22 19:09:54 +02:00
import.c Fix parsing import status for invalid fingerprint. 2022-09-07 11:27:32 +09:00
isascii.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
key.c core: Extend gpgme_key_sig_t with trust signature members. 2021-05-05 19:23:48 +02:00
keylist.c core,cpp: Add new key flags to gpgme_subkey_t 2023-03-21 08:37:47 +01:00
keysign.c core: Simplify the trace maros by using variadics. 2018-11-16 16:25:49 +01:00
libgpgme.vers core: Support usage of gpgtar for verifying a signed archive 2023-01-25 11:26:34 +01:00
Makefile.am build: When no gpg-error-config, not install gpgme-config. 2022-06-28 11:28:12 +09:00
mbox-util.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
mbox-util.h doc: Replace http: by https: in core source files. 2016-11-16 13:27:00 +01:00
op-support.c Require at least libgpg-error 1.36 2020-11-09 11:50:46 +01:00
opassuan.c core: Simplify the trace maros by using variadics. 2018-11-16 16:25:49 +01:00
ops.h core: Handle import status lines during keylist operation 2022-05-04 14:23:42 +02:00
parsetlv.c core: Protect against a theoretical integer overflow in parsetlv.c 2022-10-24 13:50:41 +02:00
parsetlv.h Spelling fixes for comments and doc 2017-12-08 05:59:11 +01:00
passphrase.c Parse STATUS_CANCELED_BY_USER. 2020-11-03 17:47:44 -08:00
passwd.c core: Simplify the trace maros by using variadics. 2018-11-16 16:25:49 +01:00
posix-io.c core: Don't keep using deprecated ath_ API. 2022-04-05 14:25:00 +09:00
posix-util.c core: Support the new macOS Homebrew location. 2023-04-20 13:35:50 +02:00
priv-io.h w32: Remove all support for WindowsCE 2018-10-31 12:35:14 +01:00
progress.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
putc_unlocked.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
queryswdb.c core: Fix format string errors in trace macros 2018-11-16 16:57:09 +01:00
revsig.c core: New function gpgme_op_revsig. 2020-10-29 12:57:10 +01:00
sema.h core: Use gpgrt locking for thread safeness 2016-11-10 13:33:13 +01:00
setenv.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
setexpire.c core: Add error handling to setexpire 2020-08-14 11:11:23 +02:00
sig-notation.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
sign.c core: Use signature modes as flags 2023-01-30 12:49:11 +01:00
signers.c core: Protect the trace macros for fun and profit. 2018-11-16 18:17:22 +01:00
spawn.c core: Simplify the trace maros by using variadics. 2018-11-16 16:25:49 +01:00
status-table.c Parse STATUS_CANCELED_BY_USER. 2020-11-03 17:47:44 -08:00
stpcpy.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
sys-util.h core: New global flags "inst-type". 2022-10-26 12:10:57 +02:00
tofupolicy.c core: Simplify the trace maros by using variadics. 2018-11-16 16:25:49 +01:00
trust-item.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
trustlist.c core: Fix format string errors in trace macros 2018-11-16 16:57:09 +01:00
ttyname_r.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
util.h core: Use 64 bit instead of gpgme_off_t for some internal functions. 2023-06-15 11:01:46 +02:00
verify.c core: Support usage of gpgtar for verifying a signed archive 2023-01-25 11:26:34 +01:00
version.c w32: Always use UTF-8 for localized texts 2023-04-04 12:11:15 +02:00
versioninfo.rc.in core: Update copyright notices 2023-02-10 11:12:52 +01:00
vfs-create.c core: Simplify the trace maros by using variadics. 2018-11-16 16:25:49 +01:00
vfs-mount.c core: Simplify the trace maros by using variadics. 2018-11-16 16:25:49 +01:00
w32-glib-io.c core: Improve the debug messages even more. 2019-06-05 15:54:55 +02:00
w32-io.c core,w32: Initialize dbg_help for socket debugging 2019-10-28 16:02:22 +01:00
w32-util.c core,w32: More robust detection of GnuPG Desktop dir layout 2023-02-01 17:29:24 +01:00
wait-global.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
wait-private.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
wait-user.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
wait.c core: Fix error return value of _gpgme_run_io_cb. 2019-06-06 18:57:28 +02:00
wait.h Remove all trailing whitespace from source files 2012-09-25 15:29:49 +02:00