aboutsummaryrefslogtreecommitdiff
path: root/src/mint/taler-mint-httpd_keys.c
diff options
context:
space:
mode:
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,
357 size_t buf_len; 357 size_t buf_len;
358 358
359 buf_len = GNUNET_CRYPTO_rsa_public_key_encode (denom_pub, 359 buf_len = GNUNET_CRYPTO_rsa_public_key_encode (denom_pub,
360 *buf); 360 &buf);
361 GNUNET_CRYPTO_hash (buf, 361 GNUNET_CRYPTO_hash (buf,
362 buf_len, 362 buf_len,
363 &hash); 363 &hash);
@@ -382,10 +382,15 @@ TALER_MINT_test_coin_valid (const struct MintKeyState *key_state,
382 struct TALER_CoinPublicInfo *coin_public_info) 382 struct TALER_CoinPublicInfo *coin_public_info)
383{ 383{
384 struct TALER_MINT_DenomKeyIssuePriv *dki; 384 struct TALER_MINT_DenomKeyIssuePriv *dki;
385 struct GNUNET_HashCode c_hash;
385 386
386 dki = TALER_MINT_get_denom_key (key_state, &coin_public_info->denom_pub); 387 dki = TALER_MINT_get_denom_key (key_state, coin_public_info->denom_pub);
387 if (NULL == dki) 388 if (NULL == dki)
388 return GNUNET_NO; 389 return GNUNET_NO;
390 /* FIXME: we had envisioned a more complex scheme... */
391 GNUNET_CRYPTO_hash (&coin_public_info->coin_pub,
392 sizeof (struct GNUNET_CRYPTO_EcdsaPublicKey),
393 &c_hash);
389 if (GNUNET_OK != 394 if (GNUNET_OK !=
390 GNUNET_CRYPTO_rsa_verify (&c_hash, 395 GNUNET_CRYPTO_rsa_verify (&c_hash,
391 coin_public_info->denom_sig, 396 coin_public_info->denom_sig,