diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-03-15 16:39:06 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-03-15 16:39:06 +0100 |
commit | 53b189868edbc855240026c2a02fe6c4e53f9bb0 (patch) | |
tree | 6e8529155e75d0791f845784a98dbc7e6541cbed /src/mint/taler-mint-httpd_keystate.c | |
parent | 76dda24c111c7316da36eba050b18494c6c83c56 (diff) | |
download | exchange-53b189868edbc855240026c2a02fe6c4e53f9bb0.tar.xz |
moving low-level JSON encoding logic to json.c
Diffstat (limited to 'src/mint/taler-mint-httpd_keystate.c')
-rw-r--r-- | src/mint/taler-mint-httpd_keystate.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/mint/taler-mint-httpd_keystate.c b/src/mint/taler-mint-httpd_keystate.c index d9eb81a9c..abc746e7d 100644 --- a/src/mint/taler-mint-httpd_keystate.c +++ b/src/mint/taler-mint-httpd_keystate.c @@ -116,8 +116,6 @@ static int reload_pipe[2]; static json_t * denom_key_issue_to_json (const struct TALER_MINT_DenomKeyIssue *dki) { - char *buf; - size_t buf_len; json_t *dk_json = json_object (); json_object_set_new (dk_json, @@ -134,13 +132,9 @@ denom_key_issue_to_json (const struct TALER_MINT_DenomKeyIssue *dki) "stamp_expire_deposit", TALER_JSON_from_abs (GNUNET_TIME_absolute_ntoh (dki->expire_spend))); - buf_len = GNUNET_CRYPTO_rsa_public_key_encode (dki->denom_pub, - &buf); json_object_set_new (dk_json, "denom_pub", - TALER_JSON_from_data (buf, - buf_len)); - GNUNET_free (buf); + TALER_JSON_from_rsa_public_key (dki->denom_pub)); json_object_set_new (dk_json, "value", TALER_JSON_from_amount (TALER_amount_ntoh (dki->value))); |