gpgme/tests
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
..
gpg tests: Package the ownertrust file 2023-03-17 09:20:08 +01:00
gpgsm tests: Add ECC key generation for tests/gpgsm. 2020-03-27 19:50:24 +09:00
json tests: Stop daemons after setting up test environment 2023-02-09 09:33:07 +01:00
opassuan core: Fully implement the inquire callback for assuan_transact 2020-09-09 12:13:20 +02:00
.gitignore .gitignore: flesh out rules and add subdirectory-.gitignores. 2012-04-20 16:05:11 +02:00
ChangeLog-2011 Spelling fixes for comments and doc 2017-12-08 05:59:11 +01:00
Makefile.am Revert "tests: Avoid problems with local time across a day boundary." 2022-06-09 15:43:24 +02:00
run-decrypt.c core: Support reading the archive to decrypt/verify directly from a file 2023-06-21 14:38:50 +02:00
run-encrypt.c core: Support writing the sign/encrypt output directly to a file 2023-06-19 18:08:47 +02:00
run-export.c core: Add new option --secret-subkey to help texts. 2022-01-04 12:30:22 +01:00
run-genkey.c tests: Fix generation of keys without expiration 2022-01-13 16:30:56 +01:00
run-identify.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
run-import.c core: Allow setting import filters when importing keys 2021-12-14 15:44:37 +01:00
run-keylist.c core,cpp: Add new key flags to gpgme_subkey_t 2023-03-21 08:37:47 +01:00
run-keysign.c core: New flag GPGME_KEYSIGN_FORCE. 2021-03-11 11:49:07 +01:00
run-receive-keys.c core: New function gpgme_op_receive_keys 2022-02-03 15:56:30 +01:00
run-sign.c core: Support writing the sign/encrypt output directly to a file 2023-06-19 18:08:47 +02:00
run-support.h Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
run-swdb.c tests: Remove unsupported option --status from usage help 2022-01-13 15:23:43 +01:00
run-threaded.c core: Detect bad passphrase error on certificate import 2021-12-22 15:25:42 +01:00
run-tofu.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
run-verify.c core: Support reading the archive to decrypt/verify directly from a file 2023-06-21 14:38:50 +02:00
start-stop-agent build: Fix make distcheck problem. 2021-08-27 14:13:36 +02:00
t-data-1.txt 2001-10-16 Marcus Brinkmann <marcus@g10code.de> 2001-10-17 19:17:46 +00:00
t-data-2.txt 2001-10-16 Marcus Brinkmann <marcus@g10code.de> 2001-10-17 19:17:46 +00:00
t-data.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
t-engine-info.c core: Extend gpgme_get_dirinfo to return the gpgtar name 2023-01-18 10:30:17 +01:00
t-version.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00