diff options
-rw-r--r-- | src/exchange/taler-exchange-httpd_refreshes_reveal.c | 17 | ||||
-rw-r--r-- | src/include/taler_json_lib.h | 6 |
2 files changed, 11 insertions, 12 deletions
diff --git a/src/exchange/taler-exchange-httpd_refreshes_reveal.c b/src/exchange/taler-exchange-httpd_refreshes_reveal.c index 451413b70..63a611594 100644 --- a/src/exchange/taler-exchange-httpd_refreshes_reveal.c +++ b/src/exchange/taler-exchange-httpd_refreshes_reveal.c @@ -1,6 +1,6 @@ /* This file is part of TALER - Copyright (C) 2014-2019, 2021 Taler Systems SA + Copyright (C) 2014-2022 Taler Systems SA TALER is free software; you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software @@ -384,9 +384,8 @@ resolve_refreshes_reveal_denominations (struct MHD_Connection *connection, { struct TALER_EXCHANGEDB_RefreshRevealedCoin *rrc = &rrcs[i]; struct GNUNET_JSON_Specification spec[] = { - GNUNET_JSON_spec_varsize (NULL, - &rrc->coin_ev, - &rrc->coin_ev_size), + TALER_JSON_spec_blinded_planchet (NULL, + &rrc->blinded_planchet), GNUNET_JSON_spec_end () }; enum GNUNET_GenericReturnValue res; @@ -399,12 +398,12 @@ resolve_refreshes_reveal_denominations (struct MHD_Connection *connection, if (GNUNET_OK != res) { for (unsigned int j = 0; j<i; j++) - GNUNET_free (rrcs[j].coin_ev); + TALER_blinded_planchet_free (&rrcs[j].blinded_planchet); return (GNUNET_NO == res) ? MHD_YES : MHD_NO; } - GNUNET_CRYPTO_hash (rrc->coin_ev, - rrc->coin_ev_size, - &rrc->coin_envelope_hash.hash); + TALER_coin_ev_hash (&rrc->blinded_planchet, + &rrcs[i].h_denom_pub, + &rrc->coin_envelope_hash); } /* lookup old_coin_pub in database */ @@ -577,7 +576,7 @@ cleanup: struct TALER_EXCHANGEDB_RefreshRevealedCoin *rrc = &rrcs[i]; TALER_blinded_denom_sig_free (&rrc->coin_sig); - GNUNET_free (rrc->coin_ev); + TALER_blinded_planchet_free (&rrc->blinded_planchet); } return ret; } diff --git a/src/include/taler_json_lib.h b/src/include/taler_json_lib.h index ea6926226..21b6d4e79 100644 --- a/src/include/taler_json_lib.h +++ b/src/include/taler_json_lib.h @@ -1,6 +1,6 @@ /* This file is part of TALER - Copyright (C) 2014, 2015, 2016, 2021 Taler Systems SA + Copyright (C) 2014, 2015, 2016, 2021, 2022 Taler Systems SA TALER is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -252,7 +252,7 @@ TALER_JSON_spec_denom_pub (const char *field, * Generate line in parser specification for denomination signature. * * @param field name of the field - * @param sig the signature to initialize + * @param[out] sig the signature to initialize * @return corresponding field spec */ struct GNUNET_JSON_Specification @@ -265,7 +265,7 @@ TALER_JSON_spec_denom_sig (const char *field, * blinded denomination signature. * * @param field name of the field - * @param sig the blinded signature to initialize + * @param[out] sig the blinded signature to initialize * @return corresponding field spec */ struct GNUNET_JSON_Specification |