core: Extend decryption result with symkey_algo.
authorWerner Koch <wk@gnupg.org>
Tue, 17 Apr 2018 11:48:56 +0000 (13:48 +0200)
committerWerner Koch <wk@gnupg.org>
Tue, 17 Apr 2018 11:48:56 +0000 (13:48 +0200)
commit01435da498af9f7538d7ee810392d7eaa407957e
tree8a9515130220ecdf058c85fcf9ce24e88618872c
parent3589da0500f1c80717e658d103a0cb2751d27b49
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 <wk@gnupg.org>
NEWS
doc/gpgme.texi
src/conversion.c
src/decrypt.c
src/gpgme.h.in
src/util.h
tests/run-decrypt.c