diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-04-11 20:16:58 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-04-11 20:16:58 +0200 |
commit | cb987575c17bd7c570d83b516dae86b4eabfe0d2 (patch) | |
tree | e50b20b00c31a47ffdfab833c5fd5ce59aade619 /src/exchange-lib/exchange_api_common.c | |
parent | ce9dd3365dd70fb360f192dfead552aae539ca3e (diff) |
check exchange signature on /wire/deposit response (#4135)
Diffstat (limited to 'src/exchange-lib/exchange_api_common.c')
-rw-r--r-- | src/exchange-lib/exchange_api_common.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/exchange-lib/exchange_api_common.c b/src/exchange-lib/exchange_api_common.c index 6d2408d93..aacbb4a2a 100644 --- a/src/exchange-lib/exchange_api_common.c +++ b/src/exchange-lib/exchange_api_common.c @@ -38,9 +38,9 @@ */ int TALER_EXCHANGE_verify_coin_history_ (const char *currency, - const struct TALER_CoinSpendPublicKeyP *coin_pub, - json_t *history, - struct TALER_Amount *total) + const struct TALER_CoinSpendPublicKeyP *coin_pub, + json_t *history, + struct TALER_Amount *total) { size_t len; size_t off; @@ -119,7 +119,6 @@ TALER_EXCHANGE_verify_coin_history_ (const char *currency, return GNUNET_SYSERR; } - // FIXME: check sig! TALER_amount_ntoh (&dr_amount, &dr->amount_with_fee); if (0 != TALER_amount_cmp (&dr_amount, |