aboutsummaryrefslogtreecommitdiff
path: root/src/mint/taler-mint-httpd_responses.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-08-14 22:42:19 +0200
committerChristian Grothoff <christian@grothoff.org>2015-08-14 22:42:19 +0200
commita8f65175f46cbada28d801d144e8be71b268dd50 (patch)
treecb74a510094b0d6af61a3f7111ed94b551754e07 /src/mint/taler-mint-httpd_responses.c
parent3d1627daa7b62a30b8bb2d201829b1a6034e85be (diff)
adapt code to match (updated) spec
Diffstat (limited to 'src/mint/taler-mint-httpd_responses.c')
-rw-r--r--src/mint/taler-mint-httpd_responses.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/mint/taler-mint-httpd_responses.c b/src/mint/taler-mint-httpd_responses.c
index 6c029b274..8a5573e87 100644
--- a/src/mint/taler-mint-httpd_responses.c
+++ b/src/mint/taler-mint-httpd_responses.c
@@ -783,17 +783,24 @@ TMH_RESPONSE_reply_refresh_reveal_success (struct MHD_Connection *connection,
{
int newcoin_index;
json_t *root;
+ json_t *obj;
json_t *list;
int ret;
- root = json_object ();
list = json_array ();
+ for (newcoin_index = 0; newcoin_index < num_newcoins; newcoin_index++)
+ {
+ obj = json_object ();
+ json_object_set_new (obj,
+ "ev_sig",
+ TALER_json_from_rsa_signature (sigs[newcoin_index].rsa_signature));
+ json_array_append_new (list,
+ obj);
+ }
+ root = json_object ();
json_object_set_new (root,
"ev_sigs",
list);
- for (newcoin_index = 0; newcoin_index < num_newcoins; newcoin_index++)
- json_array_append_new (list,
- TALER_json_from_rsa_signature (sigs[newcoin_index].rsa_signature));
ret = TMH_RESPONSE_reply_json (connection,
root,
MHD_HTTP_OK);