From 3afa534645e3826c95e7c70d7ae61ffa2d63acec Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 17 Mar 2020 17:22:51 +0100 Subject: core: New context flags "include-key-block" and "auto-key-import". * src/gpgme.c (gpgme_set_ctx_flag): Add flags "include-key-block" and "auto-key-import". (gpgme_get_ctx_flag): Ditto. * src/context.h (struct gpgme_context): Add flags include_key_block and auto_key_import. * src/engine-gpg.c (struct engine_gpg): Likewise. (gpg_set_engine_flags): Set the flags for gpg versions >= 2.2.20. (gpg_decrypt): Set option according to the new flags. (gpg_encrypt): Ditto. (gpg_encrypt_sign): Ditto. (gpg_sign): Ditto. (gpg_verify): Ditto. tests/run-verify: Add option --auto-key-import. tests/run-sign: add option --include-key-block. -- GnuPG-bug-id: 4856 Signed-off-by: Werner Koch --- src/context.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/context.h') diff --git a/src/context.h b/src/context.h index 93c4c2cc..25dfc792 100644 --- a/src/context.h +++ b/src/context.h @@ -118,6 +118,12 @@ struct gpgme_context * flag is cleared with each operation. */ unsigned int redraw_suggested : 1; + /* True if the option --include-key-block shall be passed to gpg. */ + unsigned int include_key_block : 1; + + /* True if the option --auto-key-import shall be passed to gpg. */ + unsigned int auto_key_import : 1; + /* True if the option --auto-key-retrieve shall be passed to gpg. */ unsigned int auto_key_retrieve : 1; -- cgit v1.2.3