diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-01-28 19:48:41 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-01-28 19:48:41 +0100 |
commit | 2e0e30291c4e490389f85bbd4973374f0adf22f4 (patch) | |
tree | 8d5f306cb967e7e7ab137b133206c7414bbb6f35 /src/mint/taler-mint-httpd_deposit.c | |
parent | e19f1906a3363f0f49553d35d95429c92bec29d4 (diff) | |
download | exchange-2e0e30291c4e490389f85bbd4973374f0adf22f4.tar.xz |
sign /deposit reply so that merchant has proof that mint accepted it
Diffstat (limited to 'src/mint/taler-mint-httpd_deposit.c')
-rw-r--r-- | src/mint/taler-mint-httpd_deposit.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mint/taler-mint-httpd_deposit.c b/src/mint/taler-mint-httpd_deposit.c index ee9f76d5d..0bd1134a6 100644 --- a/src/mint/taler-mint-httpd_deposit.c +++ b/src/mint/taler-mint-httpd_deposit.c @@ -60,7 +60,7 @@ verify_and_execute_deposit (struct MHD_Connection *connection, struct MintKeyState *key_state; struct TALER_DepositRequest dr; - dr.purpose.purpose = htonl (TALER_SIGNATURE_DEPOSIT); + dr.purpose.purpose = htonl (TALER_SIGNATURE_WALLET_DEPOSIT); dr.purpose.size = htonl (sizeof (struct TALER_DepositRequest)); dr.h_contract = deposit->h_contract; dr.h_wire = deposit->h_wire; @@ -68,7 +68,7 @@ verify_and_execute_deposit (struct MHD_Connection *connection, dr.amount = TALER_amount_hton (deposit->amount); dr.coin_pub = deposit->coin.coin_pub; if (GNUNET_OK != - GNUNET_CRYPTO_ecdsa_verify (TALER_SIGNATURE_DEPOSIT, + GNUNET_CRYPTO_ecdsa_verify (TALER_SIGNATURE_WALLET_DEPOSIT, &dr.purpose, &deposit->csig, &deposit->coin.coin_pub)) @@ -101,8 +101,8 @@ verify_and_execute_deposit (struct MHD_Connection *connection, * * @param connection the MHD connection to handle * @param root root of the posted JSON - * @param purpose is this a #TALER_SIGNATURE_DEPOSIT or - * #TALER_SIGNATURE_INCREMENTAL_DEPOSIT // FIXME: bad type, use enum! + * @param purpose is this a #TALER_SIGNATURE_WALLET_DEPOSIT or + * #TALER_SIGNATURE_INCREMENTAL_WALLET_DEPOSIT // FIXME: bad type, use enum! * @param amount how much should be deposited * @param wire json describing the wire details (?) * @return MHD result code @@ -258,9 +258,9 @@ TALER_MINT_handler_deposit (struct RequestHandler *rh, } /* FIXME: use array search and enum, this is ugly */ if (0 == strcmp ("DIRECT_DEPOSIT", deposit_type)) - purpose = TALER_SIGNATURE_DEPOSIT; + purpose = TALER_SIGNATURE_WALLET_DEPOSIT; else if (0 == strcmp ("INCREMENTAL_DEPOSIT", deposit_type)) - purpose = TALER_SIGNATURE_INCREMENTAL_DEPOSIT; + purpose = TALER_SIGNATURE_INCREMENTAL_WALLET_DEPOSIT; else { GNUNET_break_op (0); |