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 --- doc/gpgme.texi | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/gpgme.texi b/doc/gpgme.texi index 88b5f2cd..8cbb1f22 100644 --- a/doc/gpgme.texi +++ b/doc/gpgme.texi @@ -3105,6 +3105,14 @@ a message signed by a brand new key (which you naturally will not have on your local keyring), the operator can tell both your IP address and the time when you verified the signature. +@item "auto-key-import" +Setting the @var{value} to "1" forces the GPG backend to automatically +import a missing key for signature verification from the signature. + +@item "include-key-block" +Setting the @var{value} to "1" forces the GPG backend to embed the +signing key as well as an encryption subkey into the the signature. + @item "request-origin" The string given in @var{value} is passed to the GnuPG engines to request restrictions based on the origin of the request. Valid values @@ -3496,7 +3504,7 @@ available. @since{1.7.0} The keygrip of the subkey in hex digit form or @code{NULL} if not -availabale. +available. @item long int timestamp This is the creation timestamp of the subkey. This is -1 if the -- cgit v1.2.3