diff options
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, | |||
60 | struct MintKeyState *key_state; | 60 | struct MintKeyState *key_state; |
61 | struct TALER_DepositRequest dr; | 61 | struct TALER_DepositRequest dr; |
62 | 62 | ||
63 | dr.purpose.purpose = htonl (TALER_SIGNATURE_DEPOSIT); | 63 | dr.purpose.purpose = htonl (TALER_SIGNATURE_WALLET_DEPOSIT); |
64 | dr.purpose.size = htonl (sizeof (struct TALER_DepositRequest)); | 64 | dr.purpose.size = htonl (sizeof (struct TALER_DepositRequest)); |
65 | dr.h_contract = deposit->h_contract; | 65 | dr.h_contract = deposit->h_contract; |
66 | dr.h_wire = deposit->h_wire; | 66 | dr.h_wire = deposit->h_wire; |
@@ -68,7 +68,7 @@ verify_and_execute_deposit (struct MHD_Connection *connection, | |||
68 | dr.amount = TALER_amount_hton (deposit->amount); | 68 | dr.amount = TALER_amount_hton (deposit->amount); |
69 | dr.coin_pub = deposit->coin.coin_pub; | 69 | dr.coin_pub = deposit->coin.coin_pub; |
70 | if (GNUNET_OK != | 70 | if (GNUNET_OK != |
71 | GNUNET_CRYPTO_ecdsa_verify (TALER_SIGNATURE_DEPOSIT, | 71 | GNUNET_CRYPTO_ecdsa_verify (TALER_SIGNATURE_WALLET_DEPOSIT, |
72 | &dr.purpose, | 72 | &dr.purpose, |
73 | &deposit->csig, | 73 | &deposit->csig, |
74 | &deposit->coin.coin_pub)) | 74 | &deposit->coin.coin_pub)) |
@@ -101,8 +101,8 @@ verify_and_execute_deposit (struct MHD_Connection *connection, | |||
101 | * | 101 | * |
102 | * @param connection the MHD connection to handle | 102 | * @param connection the MHD connection to handle |
103 | * @param root root of the posted JSON | 103 | * @param root root of the posted JSON |
104 | * @param purpose is this a #TALER_SIGNATURE_DEPOSIT or | 104 | * @param purpose is this a #TALER_SIGNATURE_WALLET_DEPOSIT or |
105 | * #TALER_SIGNATURE_INCREMENTAL_DEPOSIT // FIXME: bad type, use enum! | 105 | * #TALER_SIGNATURE_INCREMENTAL_WALLET_DEPOSIT // FIXME: bad type, use enum! |
106 | * @param amount how much should be deposited | 106 | * @param amount how much should be deposited |
107 | * @param wire json describing the wire details (?) | 107 | * @param wire json describing the wire details (?) |
108 | * @return MHD result code | 108 | * @return MHD result code |
@@ -258,9 +258,9 @@ TALER_MINT_handler_deposit (struct RequestHandler *rh, | |||
258 | } | 258 | } |
259 | /* FIXME: use array search and enum, this is ugly */ | 259 | /* FIXME: use array search and enum, this is ugly */ |
260 | if (0 == strcmp ("DIRECT_DEPOSIT", deposit_type)) | 260 | if (0 == strcmp ("DIRECT_DEPOSIT", deposit_type)) |
261 | purpose = TALER_SIGNATURE_DEPOSIT; | 261 | purpose = TALER_SIGNATURE_WALLET_DEPOSIT; |
262 | else if (0 == strcmp ("INCREMENTAL_DEPOSIT", deposit_type)) | 262 | else if (0 == strcmp ("INCREMENTAL_DEPOSIT", deposit_type)) |
263 | purpose = TALER_SIGNATURE_INCREMENTAL_DEPOSIT; | 263 | purpose = TALER_SIGNATURE_INCREMENTAL_WALLET_DEPOSIT; |
264 | else | 264 | else |
265 | { | 265 | { |
266 | GNUNET_break_op (0); | 266 | GNUNET_break_op (0); |