json: Add proper decrypt_result_t handling
authorAndre Heinecke <aheinecke@intevation.de>
Tue, 21 Aug 2018 12:36:42 +0000 (14:36 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Tue, 21 Aug 2018 12:36:42 +0000 (14:36 +0200)
commit263dadb04aed4f973248b32c52af6ca59bcb7c1f
treead37901c7941bd0ae17d03ca976c5df320473add
parent8103eeba809b6e7156d861783309574b93909169
json: Add proper decrypt_result_t handling

* src/gpgme-json.c (recipient_to_json, decrypt_result_to_json):
New.
(op_decrypt, hlp_decrypt): Update.

--
The op_decrypt as one of the first operations did not yet
match the current 1 <> 1 mapping of gpgme types to json
dictonaries.

info and dec_info are bad names but used for compatibility reasons.
src/gpgme-json.c