summaryrefslogtreecommitdiff
path: root/src/mint/taler-mint-httpd_withdraw.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-07-11 21:45:34 +0200
committerChristian Grothoff <christian@grothoff.org>2015-07-11 21:45:34 +0200
commita74f55754aaeb3e28cb6943b1dd50e4a4117070b (patch)
treeef529d63d37ad3bd41923d5afb003052b9f7974f /src/mint/taler-mint-httpd_withdraw.c
parentee7e690bff1e85b7ac1af66f984fa84588c4c6cc (diff)
downloadexchange-a74f55754aaeb3e28cb6943b1dd50e4a4117070b.tar.gz
exchange-a74f55754aaeb3e28cb6943b1dd50e4a4117070b.tar.bz2
exchange-a74f55754aaeb3e28cb6943b1dd50e4a4117070b.zip
fixing #3876 (no semantic change, just stylistic changes)
Diffstat (limited to 'src/mint/taler-mint-httpd_withdraw.c')
-rw-r--r--src/mint/taler-mint-httpd_withdraw.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mint/taler-mint-httpd_withdraw.c b/src/mint/taler-mint-httpd_withdraw.c
index 589cf0a8f..4f5581643 100644
--- a/src/mint/taler-mint-httpd_withdraw.c
+++ b/src/mint/taler-mint-httpd_withdraw.c
@@ -92,7 +92,7 @@ TMH_WITHDRAW_handler_withdraw_sign (struct TMH_RequestHandler *rh,
struct TALER_WithdrawRequestPS wsrd;
int res;
struct TALER_DenominationPublicKey denomination_pub;
- const char *blinded_msg;
+ char *blinded_msg;
size_t blinded_msg_len;
struct TALER_Amount amount;
struct TALER_Amount amount_with_fee;
@@ -102,9 +102,9 @@ TMH_WITHDRAW_handler_withdraw_sign (struct TMH_RequestHandler *rh,
struct TMH_KS_StateHandle *ks;
struct TMH_PARSE_FieldSpecification spec[] = {
- TMH_PARSE_MEMBER_VARIABLE ("coin_ev"),
- TMH_PARSE_MEMBER_FIXED ("reserve_pub", &wsrd.reserve_pub),
- TMH_PARSE_MEMBER_FIXED ("reserve_sig", &signature),
+ TMH_PARSE_member_variable ("coin_ev", (void **) &blinded_msg, &blinded_msg_len),
+ TMH_PARSE_member_fixed ("reserve_pub", &wsrd.reserve_pub),
+ TMH_PARSE_member_fixed ("reserve_sig", &signature),
TMH_PARSE_member_denomination_public_key ("denom_pub", &denomination_pub),
TMH_PARSE_MEMBER_END
};
@@ -124,8 +124,6 @@ TMH_WITHDRAW_handler_withdraw_sign (struct TMH_RequestHandler *rh,
json_decref (root);
if (GNUNET_OK != res)
return (GNUNET_SYSERR == res) ? MHD_NO : MHD_YES;
- blinded_msg = spec[0].destination;
- blinded_msg_len = spec[0].destination_size_out;
ks = TMH_KS_acquire ();
dki = TMH_KS_denomination_key_lookup (ks,
&denomination_pub,