diff options
Diffstat (limited to 'src/backend/anastasis-httpd_truth-challenge.c')
-rw-r--r-- | src/backend/anastasis-httpd_truth-challenge.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/src/backend/anastasis-httpd_truth-challenge.c b/src/backend/anastasis-httpd_truth-challenge.c index c37d164..cda074c 100644 --- a/src/backend/anastasis-httpd_truth-challenge.c +++ b/src/backend/anastasis-httpd_truth-challenge.c | |||
@@ -360,22 +360,17 @@ AH_truth_challenge_shutdown (void) | |||
360 | * Callback to process a POST /orders/ID/refund request | 360 | * Callback to process a POST /orders/ID/refund request |
361 | * | 361 | * |
362 | * @param cls closure with a `struct RefundEntry *` | 362 | * @param cls closure with a `struct RefundEntry *` |
363 | * @param hr HTTP response details | 363 | * @param rr response details |
364 | * @param taler_refund_uri the refund uri offered to the wallet | ||
365 | * @param h_contract hash of the contract a Browser may need to authorize | ||
366 | * obtaining the HTTP response. | ||
367 | */ | 364 | */ |
368 | static void | 365 | static void |
369 | refund_cb ( | 366 | refund_cb ( |
370 | void *cls, | 367 | void *cls, |
371 | const struct TALER_MERCHANT_HttpResponse *hr, | 368 | const struct TALER_MERCHANT_RefundResponse *rr) |
372 | const char *taler_refund_uri, | ||
373 | const struct TALER_PrivateContractHashP *h_contract) | ||
374 | { | 369 | { |
375 | struct RefundEntry *re = cls; | 370 | struct RefundEntry *re = cls; |
376 | 371 | ||
377 | re->ro = NULL; | 372 | re->ro = NULL; |
378 | switch (hr->http_status) | 373 | switch (rr->hr.http_status) |
379 | { | 374 | { |
380 | case MHD_HTTP_OK: | 375 | case MHD_HTTP_OK: |
381 | { | 376 | { |
@@ -407,9 +402,9 @@ refund_cb ( | |||
407 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 402 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
408 | "Refund `%s' failed with HTTP status %u: %s (#%u)\n", | 403 | "Refund `%s' failed with HTTP status %u: %s (#%u)\n", |
409 | re->order_id, | 404 | re->order_id, |
410 | hr->http_status, | 405 | rr->hr.http_status, |
411 | hr->hint, | 406 | rr->hr.hint, |
412 | (unsigned int) hr->ec); | 407 | (unsigned int) rr->hr.ec); |
413 | break; | 408 | break; |
414 | } | 409 | } |
415 | GNUNET_CONTAINER_DLL_remove (re_head, | 410 | GNUNET_CONTAINER_DLL_remove (re_head, |