diff options
author | Lucien Heuzeveldt <lucienclaude.heuzeveldt@students.bfh.ch> | 2022-01-10 22:09:35 +0100 |
---|---|---|
committer | Gian Demarmels <gian@demarmels.org> | 2022-02-04 15:36:10 +0100 |
commit | daa7fdcfb1053bdd943ad7cd1bd8eb623d1c9157 (patch) | |
tree | 1cfce5401b493dfd017608cbbb05ee91ab9b247b /src/exchange/taler-exchange-httpd_deposit.c | |
parent | 9c2aefaa515ce8d493bfe4de4eab9edc09d5447e (diff) | |
download | exchange-daa7fdcfb1053bdd943ad7cd1bd8eb623d1c9157.tar.gz exchange-daa7fdcfb1053bdd943ad7cd1bd8eb623d1c9157.tar.bz2 exchange-daa7fdcfb1053bdd943ad7cd1bd8eb623d1c9157.zip |
implement spend
Diffstat (limited to 'src/exchange/taler-exchange-httpd_deposit.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_deposit.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/exchange/taler-exchange-httpd_deposit.c b/src/exchange/taler-exchange-httpd_deposit.c index 84741b5c3..11f94f2c5 100644 --- a/src/exchange/taler-exchange-httpd_deposit.c +++ b/src/exchange/taler-exchange-httpd_deposit.c @@ -356,6 +356,14 @@ TEH_handler_deposit (struct MHD_Connection *connection, TALER_EC_EXCHANGE_GENERIC_DENOMINATION_REVOKED, "DEPOSIT"); } + if (dk->denom_pub.cipher != deposit.coin.denom_sig.cipher) + { + /* denomination cipher and denomination signature cipher not the same */ + GNUNET_JSON_parse_free (spec); + return TEH_RESPONSE_reply_unknown_denom_pub_hash ( + connection, + &deposit.coin.denom_pub_hash); + } deposit.deposit_fee = dk->meta.fee_deposit; /* check coin signature */ |