From a78b3345fbf017b1cddfd09afb4b2c29287b0bba Mon Sep 17 00:00:00 2001 From: Özgür Kesim Date: Thu, 17 Feb 2022 12:23:06 +0100 Subject: [age restriction] progress 15/n - melt/refresh/reveal and recoup Added age restriction support for - melt/refresh/reveal - recoup However, tests are not yet implemented for those flows. Also: minor fixes and refactoring. --- src/util/crypto.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/util/crypto.c') diff --git a/src/util/crypto.c b/src/util/crypto.c index 6bea984f..39a9c7f1 100644 --- a/src/util/crypto.c +++ b/src/util/crypto.c @@ -90,7 +90,7 @@ TALER_test_coin_valid (const struct TALER_CoinPublicInfo *coin_public_info, #endif TALER_coin_pub_hash (&coin_public_info->coin_pub, - &coin_public_info->age_commitment_hash, + &coin_public_info->h_age_commitment, &c_hash); if (GNUNET_OK != @@ -681,7 +681,7 @@ FAIL: void -TALER_age_restriction_commmitment_free_inside ( +TALER_age_commitment_free ( struct TALER_AgeCommitment *commitment) { if (NULL == commitment) @@ -703,7 +703,7 @@ TALER_age_restriction_commmitment_free_inside ( commitment->priv = NULL; } - /* Caller is responsible for commitment itself */ + GNUNET_free (commitment); } -- cgit v1.2.3