summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-07-27 16:34:19 +0200
committerMarcello Stanisci <stanisci.m@gmail.com>2018-07-27 16:34:19 +0200
commit28140f90e800f37adea0cdcc3fd29a64f071c8eb (patch)
treeaa9ffbe5494b4e8a21679efa7d51ba10dfd35614 /src
parent5c18695bc0b048cf17fc69416e971ea1b20502bc (diff)
downloadexchange-28140f90e800f37adea0cdcc3fd29a64f071c8eb.tar.gz
exchange-28140f90e800f37adea0cdcc3fd29a64f071c8eb.tar.bz2
exchange-28140f90e800f37adea0cdcc3fd29a64f071c8eb.zip
Verifying /track/transfer response signature.
Diffstat (limited to 'src')
-rw-r--r--src/exchange-lib/exchange_api_track_transfer.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/exchange-lib/exchange_api_track_transfer.c b/src/exchange-lib/exchange_api_track_transfer.c
index 5bd672742..96ff481e7 100644
--- a/src/exchange-lib/exchange_api_track_transfer.c
+++ b/src/exchange-lib/exchange_api_track_transfer.c
@@ -196,6 +196,17 @@ check_track_transfer_response_ok (struct TALER_EXCHANGE_TrackTransferHandle *wdh
GNUNET_JSON_parse_free (spec);
return GNUNET_SYSERR;
}
+ if (GNUNET_OK != GNUNET_CRYPTO_eddsa_verify
+ (TALER_SIGNATURE_EXCHANGE_CONFIRM_WIRE_DEPOSIT,
+ &wdp.purpose,
+ &exchange_sig.eddsa_signature,
+ &exchange_pub.eddsa_pub))
+ {
+ GNUNET_break_op (0);
+ GNUNET_JSON_parse_free (spec);
+ return GNUNET_SYSERR;
+ }
+
if (GNUNET_OK !=
TALER_amount_subtract (&total_expected,
&total_expected,