From 91a59d2a35540769c055da2341b5face0be6c286 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 18 Mar 2025 16:22:58 +0100 Subject: New decrypt flags GPGME_DECRYPT_LISTONLY. * src/gpgme.h.in (GPGME_DECRYPT_LISTONLY): New. * src/decrypt.c (op_data_t): Add member list_only. (_gpgme_decrypt_status_handler): Do not return NO_DATA in list_only mode. (_gpgme_op_decrypt_init_result): Add arg flags and set the list_only flag. (_gpgme_decrypt_start): Pss flags to the init function. * src/decrypt-verify.c (decrypt_verify_start): Ditto. * src/engine-gpg.c (gpg_decrypt): Add --list-only if flag is set. * tests/run-decrypt.c (main): Add option --list-only. --- doc/gpgme.texi | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'doc/gpgme.texi') diff --git a/doc/gpgme.texi b/doc/gpgme.texi index fa93083c..bc4b1ac5 100644 --- a/doc/gpgme.texi +++ b/doc/gpgme.texi @@ -5830,6 +5830,15 @@ be an OpenPGP message with only the encryption layer removed. This requires GnuPG 2.1.12 and works only for OpenPGP. This is the counterpart to @code{GPGME_ENCRYPT_WRAP}. +@item GPGME_DECRYPT_LIST +@since{2.0.0} + +The @code{GPGME_DECRYPT_LIST} symbol specifies that the actual +decryption step of an OpenPGP message shall be skipped. This can be +used to information on the keyids of the recipients of some encrypted +data. Note that most other result items have no or no useful +information in this case. + @end table The function returns the error codes as described for -- cgit v1.2.3