json: Deduplicate input handling code
authorAndre Heinecke <aheinecke@intevation.de>
Fri, 25 May 2018 07:46:30 +0000 (09:46 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Fri, 25 May 2018 09:56:32 +0000 (11:56 +0200)
commita46c27b32111b1737a405c5be48c0f9ddbbbb353
tree4fb8956cd65a4b62f3f7a406cdb957f3c7a8aaad
parent321005c12f716814d86e139eb265437bda01380f
json: Deduplicate input handling code

* gpgme-json.c (get_string_data): New.
(op_verify, op_sign, op_decrypt, op_encrypt): Use it.

--
This handles the common base64 decoding and creation of the
gpgme_data object.
src/gpgme-json.c