aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpgme.h.in
diff options
context:
space:
mode:
authorIngo Klöcker <[email protected]>2023-01-19 09:45:04 +0000
committerIngo Klöcker <[email protected]>2023-01-19 09:45:04 +0000
commit0ca45e48b45af1978027e6fe26c7e406fd5ec74b (patch)
treeb5954cd207e33c4fc7cfa90b62503139e344b67e /src/gpgme.h.in
parentcore: Fix --set-filename argument (diff)
downloadgpgme-0ca45e48b45af1978027e6fe26c7e406fd5ec74b.tar.gz
gpgme-0ca45e48b45af1978027e6fe26c7e406fd5ec74b.zip
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
Diffstat (limited to 'src/gpgme.h.in')
-rw-r--r--src/gpgme.h.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpgme.h.in b/src/gpgme.h.in
index db1f8f13..fabba257 100644
--- a/src/gpgme.h.in
+++ b/src/gpgme.h.in
@@ -308,7 +308,8 @@ typedef enum
{
GPGME_SIG_MODE_NORMAL = 0,
GPGME_SIG_MODE_DETACH = 1,
- GPGME_SIG_MODE_CLEAR = 2
+ GPGME_SIG_MODE_CLEAR = 2,
+ GPGME_SIG_MODE_ARCHIVE = 3
}
gpgme_sig_mode_t;