diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-11-24 14:48:35 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-11-24 14:48:35 +0100 |
commit | 4c80119b30c4a9946cb4bfb05363c543ba955bb6 (patch) | |
tree | ea71d9658f205917ba500786288dfdb65def4034 /src/util/json.c | |
parent | 3961d3df7edfc710223b75cfa2756703a8c74db9 (diff) | |
parent | 1ca54c5df12dc7fd5e9891b64d3e8eb61848e08e (diff) | |
download | exchange-4c80119b30c4a9946cb4bfb05363c543ba955bb6.tar.gz exchange-4c80119b30c4a9946cb4bfb05363c543ba955bb6.tar.bz2 exchange-4c80119b30c4a9946cb4bfb05363c543ba955bb6.zip |
Merge branch 'master' of git+ssh://taler.net/var/git/mint
Diffstat (limited to 'src/util/json.c')
-rw-r--r-- | src/util/json.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/util/json.c b/src/util/json.c index 9f7623b2a..cea0118e1 100644 --- a/src/util/json.c +++ b/src/util/json.c @@ -104,40 +104,6 @@ TALER_json_from_abs (struct GNUNET_TIME_Absolute stamp) /** - * Convert a signature (with purpose) to a JSON object representation. - * - * @param purpose purpose of the signature - * @param signature the signature - * @return the JSON reporesentation of the signature with purpose - */ -json_t * -TALER_json_from_eddsa_sig (const struct GNUNET_CRYPTO_EccSignaturePurpose *purpose, - const struct GNUNET_CRYPTO_EddsaSignature *signature) -{ - json_t *root; - json_t *el; - - root = json_object (); - - el = json_integer ((json_int_t) ntohl (purpose->size)); - json_object_set_new (root, "size", el); - - el = json_integer ((json_int_t) ntohl (purpose->purpose)); - json_object_set_new (root, "purpose", el); - - el = TALER_json_from_data (purpose, - ntohl (purpose->size)); - json_object_set_new (root, "eddsa_val", el); - - el = TALER_json_from_data (signature, - sizeof (struct GNUNET_CRYPTO_EddsaSignature)); - json_object_set_new (root, "eddsa_sig", el); - - return root; -} - - -/** * Convert RSA public key to JSON. * * @param pk public key to convert |