json: Refactor signature and ei code
authorAndre Heinecke <aheinecke@intevation.de>
Fri, 25 May 2018 10:17:46 +0000 (12:17 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Fri, 25 May 2018 10:17:46 +0000 (12:17 +0200)
commitaa59f4970ac106ccd17fa9fadfc264d11e4cd347
tree76f48cbb2ca364890a5f52f0fd9be419fceb646f
parent546e3295eaade073c34364c4ea6ab007532824d8
json: Refactor signature and ei code

* src/gpgme-json.c (add_summary_to_object): Changed to:
sigsum_to_json.
(add_signature_to_object): Changed to signature_to_json.
(add_signatures_to_object): Changed to verify_result_to_json.
(add_ei_to_object): Changed to engine_info_to_json.
(op_decrypt, op_verify, op_version): Use new functions.

--
This pattern of gpgme_type to json object conversion
is much cleaner then the error returning "add to object"
functions.
src/gpgme-json.c