diff options
Diffstat (limited to 'src/mint/taler-mint-httpd_responses.c')
-rw-r--r-- | src/mint/taler-mint-httpd_responses.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/mint/taler-mint-httpd_responses.c b/src/mint/taler-mint-httpd_responses.c index 432772d79..c8200b43a 100644 --- a/src/mint/taler-mint-httpd_responses.c +++ b/src/mint/taler-mint-httpd_responses.c | |||
@@ -275,12 +275,14 @@ TALER_MINT_reply_deposit_success (struct MHD_Connection *connection, | |||
275 | * Send reserve status information to client. | 275 | * Send reserve status information to client. |
276 | * | 276 | * |
277 | * @param connection connection to the client | 277 | * @param connection connection to the client |
278 | * @param reserve reserve status information to return | 278 | * @param balance current reserve balance |
279 | * @param expiration when will the reserve expire | ||
279 | * @return MHD result code | 280 | * @return MHD result code |
280 | */ | 281 | */ |
281 | int | 282 | int |
282 | TALER_MINT_reply_withdraw_status_success (struct MHD_Connection *connection, | 283 | TALER_MINT_reply_withdraw_status_success (struct MHD_Connection *connection, |
283 | const struct Reserve *reserve) | 284 | const struct TALER_Amount balance, |
285 | struct GNUNET_TIME_Absolute expiration) | ||
284 | { | 286 | { |
285 | json_t *json; | 287 | json_t *json; |
286 | 288 | ||
@@ -289,15 +291,10 @@ TALER_MINT_reply_withdraw_status_success (struct MHD_Connection *connection, | |||
289 | json = json_object (); | 291 | json = json_object (); |
290 | json_object_set_new (json, | 292 | json_object_set_new (json, |
291 | "balance", | 293 | "balance", |
292 | TALER_JSON_from_amount (TALER_amount_ntoh (reserve->balance))); | 294 | TALER_JSON_from_amount (balance)); |
293 | json_object_set_new (json, | 295 | json_object_set_new (json, |
294 | "expiration", | 296 | "expiration", |
295 | TALER_JSON_from_abs (GNUNET_TIME_absolute_ntoh (reserve->expiration))); | 297 | TALER_JSON_from_abs (expiration)); |
296 | json_object_set_new (json, | ||
297 | "signature", | ||
298 | TALER_JSON_from_sig (&reserve->status_sig_purpose, | ||
299 | &reserve->status_sig)); | ||
300 | |||
301 | return TALER_MINT_reply_json (connection, | 298 | return TALER_MINT_reply_json (connection, |
302 | json, | 299 | json, |
303 | MHD_HTTP_OK); | 300 | MHD_HTTP_OK); |