diff options
Diffstat (limited to 'src/mint/taler-mint-httpd_withdraw.c')
-rw-r--r-- | src/mint/taler-mint-httpd_withdraw.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mint/taler-mint-httpd_withdraw.c b/src/mint/taler-mint-httpd_withdraw.c index 1cf410910..7b7066f80 100644 --- a/src/mint/taler-mint-httpd_withdraw.c +++ b/src/mint/taler-mint-httpd_withdraw.c | |||
@@ -98,7 +98,7 @@ TALER_MINT_handler_withdraw_sign (struct RequestHandler *rh, | |||
98 | size_t denomination_pub_data_size; | 98 | size_t denomination_pub_data_size; |
99 | char *blinded_msg; | 99 | char *blinded_msg; |
100 | size_t blinded_msg_len; | 100 | size_t blinded_msg_len; |
101 | const struct GNUNET_CRYPTO_EddsaSignature signature; | 101 | struct GNUNET_CRYPTO_EddsaSignature signature; |
102 | 102 | ||
103 | res = TALER_MINT_mhd_request_arg_data (connection, | 103 | res = TALER_MINT_mhd_request_arg_data (connection, |
104 | "reserve_pub", | 104 | "reserve_pub", |
@@ -112,7 +112,7 @@ TALER_MINT_handler_withdraw_sign (struct RequestHandler *rh, | |||
112 | /* FIXME: handle variable-size signing keys! */ | 112 | /* FIXME: handle variable-size signing keys! */ |
113 | res = TALER_MINT_mhd_request_var_arg_data (connection, | 113 | res = TALER_MINT_mhd_request_var_arg_data (connection, |
114 | "denom_pub", | 114 | "denom_pub", |
115 | &denomination_pub_data, | 115 | (void **) &denomination_pub_data, |
116 | &denomination_pub_data_size); | 116 | &denomination_pub_data_size); |
117 | if (GNUNET_SYSERR == res) | 117 | if (GNUNET_SYSERR == res) |
118 | return MHD_NO; /* internal error */ | 118 | return MHD_NO; /* internal error */ |
@@ -120,7 +120,7 @@ TALER_MINT_handler_withdraw_sign (struct RequestHandler *rh, | |||
120 | return MHD_YES; /* invalid request */ | 120 | return MHD_YES; /* invalid request */ |
121 | res = TALER_MINT_mhd_request_var_arg_data (connection, | 121 | res = TALER_MINT_mhd_request_var_arg_data (connection, |
122 | "coin_ev", | 122 | "coin_ev", |
123 | &blinded_msg, | 123 | (void **) &blinded_msg, |
124 | &blinded_msg_len); | 124 | &blinded_msg_len); |
125 | if (GNUNET_SYSERR == res) | 125 | if (GNUNET_SYSERR == res) |
126 | return MHD_NO; /* internal error */ | 126 | return MHD_NO; /* internal error */ |
@@ -137,7 +137,7 @@ TALER_MINT_handler_withdraw_sign (struct RequestHandler *rh, | |||
137 | 137 | ||
138 | /* verify signature! */ | 138 | /* verify signature! */ |
139 | wsrd.purpose.size = htonl (sizeof (struct TALER_WithdrawRequest)); | 139 | wsrd.purpose.size = htonl (sizeof (struct TALER_WithdrawRequest)); |
140 | wsrd.purpose.type = htonl (TALER_SIGNATURE_WITHDRAW); | 140 | wsrd.purpose.purpose = htonl (TALER_SIGNATURE_WITHDRAW); |
141 | GNUNET_CRYPTO_hash (denomination_pub_data, | 141 | GNUNET_CRYPTO_hash (denomination_pub_data, |
142 | denomination_pub_data_size, | 142 | denomination_pub_data_size, |
143 | &wsrd.h_denomination_pub); | 143 | &wsrd.h_denomination_pub); |