From cd79fc39736fda6ce38f1f79700cf658c47372f9 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 9 Sep 2024 17:33:29 +0200 Subject: core: New encryption flags GPGME_ENCRYPT_ADD_RECP and _CHG_RECP. * src/gpgme.h.in (GPGME_ENCRYPT_ADD_RECP, GPGME_ENCRYPT_CHG_RECP): New flag values. * src/engine-gpg.c (have_cmd_modify_recipients): New. (gpg_encrypt): Check availability of the feature and prepare command. * tests/run-encrypt.c (main): New options --add-recipients and --change-recipients. -- GnuPG-bug-id: 1825 --- doc/gpgme.texi | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'doc') diff --git a/doc/gpgme.texi b/doc/gpgme.texi index a630e0e2..0e64254b 100644 --- a/doc/gpgme.texi +++ b/doc/gpgme.texi @@ -6760,6 +6760,17 @@ output should be additionally encrypted symmetrically even if recipients are provided. This feature is only supported for the OpenPGP crypto engine. +@item GPGME_ENCRYPT_ADD_RECP +@item GPGME_ENCRYPT_CHG_RECP +@since{1.24.0} + +Instead of encrypting, decrypt the input and write an output which is +additionally encrypted to the specified keys. The CHG flag is similar +but does not add encryption to the specified keys but existing +encryption keys by the new ones. This feature is only supported for +the OpenPGP crypto engine and requires at least GnuPG version 2.5.1. + + @item GPGME_ENCRYPT_THROW_KEYIDS @since{1.8.0} -- cgit v1.2.3