aboutsummaryrefslogtreecommitdiff
path: root/src/mint
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-01-27 21:46:54 +0100
committerChristian Grothoff <christian@grothoff.org>2015-01-27 21:46:54 +0100
commitbd42711209042d17cc596da195aebd0868ff4eeb (patch)
tree5039347fff4e43ec939d915e7de1d2cdcb476384 /src/mint
parentc7b7da5a19b78c82db9dc66c5dba5984f0ace937 (diff)
fix warning and type confusion
Diffstat (limited to 'src/mint')
-rw-r--r--src/mint/taler-mint-httpd_withdraw.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mint/taler-mint-httpd_withdraw.c b/src/mint/taler-mint-httpd_withdraw.c
index 7b7066f80..c23aa70e2 100644
--- a/src/mint/taler-mint-httpd_withdraw.c
+++ b/src/mint/taler-mint-httpd_withdraw.c
@@ -93,7 +93,7 @@ TALER_MINT_handler_withdraw_sign (struct RequestHandler *rh,
{
struct TALER_WithdrawRequest wsrd;
int res;
- const struct GNUNET_CRYPTO_rsa_PublicKey *denomination_pub;
+ struct GNUNET_CRYPTO_rsa_PublicKey *denomination_pub;
char *denomination_pub_data;
size_t denomination_pub_data_size;
char *blinded_msg;
@@ -152,8 +152,8 @@ TALER_MINT_handler_withdraw_sign (struct RequestHandler *rh,
{
return 42; // FIXME: generate error reply
}
- denomination_pub = GNUNET_CRYPTO_rsa_private_key_decode (denomination_pub_data,
- denomination_pub_data_size);
+ denomination_pub = GNUNET_CRYPTO_rsa_public_key_decode (denomination_pub_data,
+ denomination_pub_data_size);
if (NULL == denomination_pub)
{
GNUNET_free (denomination_pub_data);