aboutsummaryrefslogtreecommitdiff
path: root/src/mint/taler-mint-httpd_keys.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-01-27 18:52:56 +0100
committerChristian Grothoff <christian@grothoff.org>2015-01-27 18:52:56 +0100
commitb05a5acc3cb737f9a06fcd6939f853c132de3714 (patch)
treec466642d90edfda6bd03266ba3c71eadfd2b2598 /src/mint/taler-mint-httpd_keys.c
parent019af0919e3fbe2f831f92728fd95eb7ea505da9 (diff)
mint-httpd_withdraw compiles again
Diffstat (limited to 'src/mint/taler-mint-httpd_keys.c')
-rw-r--r--src/mint/taler-mint-httpd_keys.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mint/taler-mint-httpd_keys.c b/src/mint/taler-mint-httpd_keys.c
index 24851575a..28924baef 100644
--- a/src/mint/taler-mint-httpd_keys.c
+++ b/src/mint/taler-mint-httpd_keys.c
@@ -357,7 +357,7 @@ TALER_MINT_get_denom_key (const struct MintKeyState *key_state,
size_t buf_len;
buf_len = GNUNET_CRYPTO_rsa_public_key_encode (denom_pub,
- *buf);
+ &buf);
GNUNET_CRYPTO_hash (buf,
buf_len,
&hash);
@@ -382,10 +382,15 @@ TALER_MINT_test_coin_valid (const struct MintKeyState *key_state,
struct TALER_CoinPublicInfo *coin_public_info)
{
struct TALER_MINT_DenomKeyIssuePriv *dki;
+ struct GNUNET_HashCode c_hash;
- dki = TALER_MINT_get_denom_key (key_state, &coin_public_info->denom_pub);
+ dki = TALER_MINT_get_denom_key (key_state, coin_public_info->denom_pub);
if (NULL == dki)
return GNUNET_NO;
+ /* FIXME: we had envisioned a more complex scheme... */
+ GNUNET_CRYPTO_hash (&coin_public_info->coin_pub,
+ sizeof (struct GNUNET_CRYPTO_EcdsaPublicKey),
+ &c_hash);
if (GNUNET_OK !=
GNUNET_CRYPTO_rsa_verify (&c_hash,
coin_public_info->denom_sig,