From 891018f69f52244fd4cb61b50e3b3aeaeb0d8f50 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 28 Mar 2015 14:22:21 +0100 Subject: minor renaming of signature values and improved documentation of signatures, also adding a few missing fields to signatures to address #3631 --- src/mint/taler-mint-httpd_refresh.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mint/taler-mint-httpd_refresh.c') diff --git a/src/mint/taler-mint-httpd_refresh.c b/src/mint/taler-mint-httpd_refresh.c index ef7fb03ad..53671dfab 100644 --- a/src/mint/taler-mint-httpd_refresh.c +++ b/src/mint/taler-mint-httpd_refresh.c @@ -176,7 +176,7 @@ get_coin_public_info (struct MHD_Connection *connection, struct TMH_DB_MeltDetails *r_melt_detail) { int ret; - union TALER_CoinSpendSignatureP melt_sig; + struct TALER_CoinSpendSignatureP melt_sig; struct TALER_DenominationSignature sig; struct TALER_DenominationPublicKey pk; struct TALER_Amount amount; @@ -244,13 +244,13 @@ verify_coin_public_info (struct MHD_Connection *connection, struct TALER_Amount fee_refresh; body.purpose.size = htonl (sizeof (struct TALER_RefreshMeltCoinAffirmationPS)); - body.purpose.purpose = htonl (TALER_SIGNATURE_COIN_MELT); + body.purpose.purpose = htonl (TALER_SIGNATURE_WALLET_COIN_MELT); body.session_hash = *session_hash; TALER_amount_hton (&body.amount_with_fee, &r_melt_detail->melt_amount_with_fee); body.coin_pub = r_public_info->coin_pub; if (GNUNET_OK != - GNUNET_CRYPTO_ecdsa_verify (TALER_SIGNATURE_COIN_MELT, + GNUNET_CRYPTO_ecdsa_verify (TALER_SIGNATURE_WALLET_COIN_MELT, &body.purpose, &r_melt_detail->melt_sig.ecdsa_signature, &r_public_info->coin_pub.ecdsa_pub)) -- cgit v1.2.3