aboutsummaryrefslogtreecommitdiffstats
path: root/lang/cpp/src/key.cpp
diff options
context:
space:
mode:
authorIngo Klöcker <[email protected]>2023-01-19 10:08:42 +0000
committerIngo Klöcker <[email protected]>2023-01-19 10:08:42 +0000
commit29cfcd316d1bfc98ca663369a9503cc169dd3447 (patch)
treef93320b3453b058ded50874fd32f54d0ee7446df /lang/cpp/src/key.cpp
parentcore: Support usage of gpgtar for creating a signed archive (diff)
downloadgpgme-29cfcd316d1bfc98ca663369a9503cc169dd3447.tar.gz
gpgme-29cfcd316d1bfc98ca663369a9503cc169dd3447.zip
core: Support usage of gpgtar for creating an encrypted signed archive
* src/engine-gpg.c (gpg_encrypt_sign): Set use_gpgtar engine flag if GPGME_ENCRYPT_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. * tests/run-encrypt.c (print_result): Rename to print_encrypt_result. Print header. (print_sign_result): New. (show_usage): New option --sign. (main): Parse new option. Sign and encrypt --sign is given. Print results of signing additionally to results of encryption. -- With this change the gpgme_op_encrypt_sign* functions get support for creating an encrypted and signed archive from files and/or directories passed as NUL-separated list in the "plain" data with gpgtar. GnuPG-bug-id: 6342
Diffstat (limited to 'lang/cpp/src/key.cpp')
0 files changed, 0 insertions, 0 deletions