gpgme/tests
Ingo Klöcker 0ca45e48b4
core: Support usage of gpgtar for creating a signed archive
* src/gpgme.h.in (GPGME_SIG_MODE_ARCHIVE): New signature mode.
* src/engine-gpg.c (append_args_from_sender,
append_args_from_sig_notations): Use add_gpg_arg_with_value
for gpg-only options with a value.
(gpg_sign): Set use_gpgtar engine flag if GPGME_SIG_MODE_ARCHIVE mode
is set. Check for new enough gpg. Use add_gpg_arg_with_value for
gpg-only options with a value and add_gpg_arg for gpg-only options
without a value. Set extra options for gpgtar and pass input data to
stdin when using gpgtar.
* src/sign.c (sign_start): Add GPGME_SIG_MODE_ARCHIVE as valid mode.

* tests/run-sign.c (show_usage): New options --archive and
--diagnostics.
(main): Parse new options. Sign with gpgtar if --archive is given.
Print stderr of gpg/gpgtar if --diagnostics is given.
--

With this change the gpgme_op_sign* functions get support for
creating a signed archive from files and/or directories passed as
NUL-separated list in the "in" data with gpgtar.

GnuPG-bug-id: 6342
2023-01-19 10:45:04 +01:00
..
gpg tests: Make t-edit-sign more robust. 2022-08-10 12:34:12 +02:00
gpgsm tests: Add ECC key generation for tests/gpgsm. 2020-03-27 19:50:24 +09:00
json tests: Fix gcc incompatibility 2020-10-03 19:54:00 +02: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: New data flags "io-buffer-size" and "sensitive". 2021-06-14 19:51:28 +02:00
run-encrypt.c core: Support usage of gpgtar for encryption 2023-01-18 11:48:02 +01: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: New context flag "no-auto-check-trustdb" 2022-11-04 10:38:41 +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 usage of gpgtar for creating a signed archive 2023-01-19 10:45:04 +01: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: Allow for older compilers. 2021-05-12 08:50:04 +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