diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-05-16 14:16:38 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-05-16 14:16:38 +0200 |
commit | 456434ec41337e60188ae402a621d568ba48dca7 (patch) | |
tree | 2de84b2e52e28e46d158558dd2c1322e9940f387 | |
parent | f4a59d1cccd058b3180ea23ed9fdea69cb2129b8 (diff) |
eliminating ECDSA support from json API (dead)
-rw-r--r-- | src/include/taler_json_lib.h | 12 | ||||
-rw-r--r-- | src/util/json.c | 34 |
2 files changed, 0 insertions, 46 deletions
diff --git a/src/include/taler_json_lib.h b/src/include/taler_json_lib.h index 7e0955688..2f0c54498 100644 --- a/src/include/taler_json_lib.h +++ b/src/include/taler_json_lib.h @@ -65,18 +65,6 @@ TALER_json_from_eddsa_sig (const struct GNUNET_CRYPTO_EccSignaturePurpose *purpo /** - * 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_ecdsa_sig (const struct GNUNET_CRYPTO_EccSignaturePurpose *purpose, - const struct GNUNET_CRYPTO_EcdsaSignature *signature); - - -/** * Convert RSA public key to JSON. * * @param pk public key to convert diff --git a/src/util/json.c b/src/util/json.c index 1cc04fe83..f6f2e49a1 100644 --- a/src/util/json.c +++ b/src/util/json.c @@ -129,40 +129,6 @@ TALER_json_from_eddsa_sig (const struct GNUNET_CRYPTO_EccSignaturePurpose *purpo /** - * 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_ecdsa_sig (const struct GNUNET_CRYPTO_EccSignaturePurpose *purpose, - const struct GNUNET_CRYPTO_EcdsaSignature *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, "ecdsa_val", el); - - el = TALER_json_from_data (signature, - sizeof (struct GNUNET_CRYPTO_EddsaSignature)); - json_object_set_new (root, "ecdsa_sig", el); - - return root; -} - - -/** * Convert RSA public key to JSON. * * @param pk public key to convert |