aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpgme.h.in
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2018-04-17 11:48:56 +0000
committerWerner Koch <[email protected]>2018-04-17 11:48:56 +0000
commit01435da498af9f7538d7ee810392d7eaa407957e (patch)
tree8a9515130220ecdf058c85fcf9ce24e88618872c /src/gpgme.h.in
parentcore: New keyword --file for OpenPGP recpstring. (diff)
downloadgpgme-01435da498af9f7538d7ee810392d7eaa407957e.tar.gz
gpgme-01435da498af9f7538d7ee810392d7eaa407957e.zip
core: Extend decryption result with symkey_algo.
* src/gpgme.h.in (gpgme_op_decrypt_result_t): Add field 'symkey_algo'. * src/decrypt.c (release_op_data): Free SYMKEY_ALGO. (gpgme_op_decrypt_result): Make sure SYMKEY_ALGO is not NULL. (parse_decryption_info): New. (_gpgme_decrypt_status_handler): Parse DECRYPTION_INFO status. * src/conversion.c (_gpgme_cipher_algo_name): New. (_gpgme_cipher_mode_name): New. * tests/run-decrypt.c (print_result): Print SYMKEY_ALGO * src/util.h (_gpgme_map_gnupg_error): Remove obsolete prototype. -- Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'src/gpgme.h.in')
-rw-r--r--src/gpgme.h.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gpgme.h.in b/src/gpgme.h.in
index 860e0931..202859c3 100644
--- a/src/gpgme.h.in
+++ b/src/gpgme.h.in
@@ -1368,6 +1368,10 @@ struct _gpgme_op_decrypt_result
/* A textual representation of the session key used to decrypt the
* message, if available */
char *session_key;
+
+ /* A string with the symmetric encryption algorithm and mode using
+ * the format "<algo>.<mode>". */
+ char *symkey_algo;
};
typedef struct _gpgme_op_decrypt_result *gpgme_decrypt_result_t;