summaryrefslogtreecommitdiff
path: root/src/exchange-lib/exchange_api_wire_deposits.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-04-11 19:54:54 +0200
committerChristian Grothoff <christian@grothoff.org>2016-04-11 19:54:54 +0200
commitce9dd3365dd70fb360f192dfead552aae539ca3e (patch)
treea2d144bf4a7c97cab7e7511ac6689dd9e93b407a /src/exchange-lib/exchange_api_wire_deposits.c
parent3a5902b590686cd3e5a7c8a5d47365f267930168 (diff)
downloadexchange-ce9dd3365dd70fb360f192dfead552aae539ca3e.tar.gz
exchange-ce9dd3365dd70fb360f192dfead552aae539ca3e.tar.bz2
exchange-ce9dd3365dd70fb360f192dfead552aae539ca3e.zip
implement signing of /wire/deposit replies (#4135)
Diffstat (limited to 'src/exchange-lib/exchange_api_wire_deposits.c')
-rw-r--r--src/exchange-lib/exchange_api_wire_deposits.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/exchange-lib/exchange_api_wire_deposits.c b/src/exchange-lib/exchange_api_wire_deposits.c
index 0112f8565..5b661920d 100644
--- a/src/exchange-lib/exchange_api_wire_deposits.c
+++ b/src/exchange-lib/exchange_api_wire_deposits.c
@@ -101,8 +101,12 @@ handle_wire_deposits_finished (void *cls,
struct TALER_Amount total_amount;
struct TALER_MerchantPublicKeyP merchant_pub;
unsigned int num_details;
+ struct TALER_ExchangePublicKeyP pub;
+ struct TALER_ExchangeSignatureP sig;
struct GNUNET_JSON_Specification spec[] = {
GNUNET_JSON_spec_fixed_auto ("H_wire", &h_wire),
+ GNUNET_JSON_spec_fixed_auto ("exchange_pub", &pub),
+ GNUNET_JSON_spec_fixed_auto ("exchange_sig", &sig),
GNUNET_JSON_spec_fixed_auto ("merchant_pub", &merchant_pub),
TALER_JSON_spec_amount ("total_amount", &total_amount),
GNUNET_JSON_spec_json ("details", &details_j),
@@ -148,6 +152,7 @@ handle_wire_deposits_finished (void *cls,
}
if (0 == response_code)
break;
+ /* FIXME: check signature (#4135) */
wdh->cb (wdh->cb_cls,
response_code,
json,
@@ -208,9 +213,9 @@ handle_wire_deposits_finished (void *cls,
*/
struct TALER_EXCHANGE_WireDepositsHandle *
TALER_EXCHANGE_wire_deposits (struct TALER_EXCHANGE_Handle *exchange,
- const struct TALER_WireTransferIdentifierRawP *wtid,
- TALER_EXCHANGE_WireDepositsCallback cb,
- void *cb_cls)
+ const struct TALER_WireTransferIdentifierRawP *wtid,
+ TALER_EXCHANGE_WireDepositsCallback cb,
+ void *cb_cls)
{
struct TALER_EXCHANGE_WireDepositsHandle *wdh;
struct TALER_EXCHANGE_Context *ctx;