Home GnuPG
Diffusion GPGME 3afa534645e3

core: New context flags "include-key-block" and "auto-key-import".

Description

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: T4856
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Mar 17 2020, 5:22 PM
Parents
rM11edc073a3d2: python: fix minor typo in howto
Branches
Unknown
Tags
Unknown
Tasks
T4856: GPG: Key Exchange Put public OpenPGP key into signature