gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-exchange] branch master updated: -new error codes for purse depos


From: gnunet
Subject: [taler-exchange] branch master updated: -new error codes for purse deposit failures
Date: Thu, 30 Jun 2022 11:14:36 +0200

This is an automated email from the git hooks/post-receive script.

oec pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new e0e69fd7 -new error codes for purse deposit failures
e0e69fd7 is described below

commit e0e69fd72e804e14b4f2ef497b3b0fb2661ec2ef
Author: Özgür Kesim <oec-taler@kesim.org>
AuthorDate: Thu Jun 30 11:14:33 2022 +0200

    -new error codes for purse deposit failures
---
 contrib/gana                                       | 2 +-
 src/exchange/taler-exchange-httpd_common_deposit.c | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/contrib/gana b/contrib/gana
index ce57f1bb..cf9e9f70 160000
--- a/contrib/gana
+++ b/contrib/gana
@@ -1 +1 @@
-Subproject commit ce57f1bb32a657c0e479a13401339c9899b1c898
+Subproject commit cf9e9f70ae04da02be8d11fde5668e2ef72adc57
diff --git a/src/exchange/taler-exchange-httpd_common_deposit.c 
b/src/exchange/taler-exchange-httpd_common_deposit.c
index cfa15fcc..7e977420 100644
--- a/src/exchange/taler-exchange-httpd_common_deposit.c
+++ b/src/exchange/taler-exchange-httpd_common_deposit.c
@@ -224,13 +224,13 @@ TEH_common_deposit_check_purse_deposit (
     GNUNET_break_op (0);
     return TALER_MHD_reply_with_error (connection,
                                        MHD_HTTP_BAD_REQUEST,
-                                       /* FIXME: other error code? */
-                                       
TALER_EC_EXCHANGE_GENERIC_COIN_CONFLICTING_AGE_HASH,
+                                       
TALER_EC_EXCHANGE_PURSE_DEPOSIT_COIN_CONFLICTING_ATTEST_VS_AGE_COMMITMENT,
                                        "mismatch of attest and 
age_commitment");
   }
 
   if (coin->cpi.no_age_commitment)
     return GNUNET_OK; /* unrestricted coin */
+
   /* age attestation must be valid */
   if (GNUNET_OK !=
       TALER_age_commitment_verify (&coin->age_commitment,
@@ -241,7 +241,7 @@ TEH_common_deposit_check_purse_deposit (
     return TALER_MHD_reply_with_error (connection,
                                        MHD_HTTP_BAD_REQUEST,
                                        /* FIXME: other error code? */
-                                       
TALER_EC_EXCHANGE_GENERIC_COIN_CONFLICTING_AGE_HASH,
+                                       
TALER_EC_EXCHANGE_PURSE_DEPOSIT_COIN_AGE_ATTESTATION_FAILURE,
                                        "invalid attest for minimum age");
   }
   return GNUNET_OK;
@@ -259,7 +259,7 @@ TEH_common_purse_deposit_free_coin (struct 
TEH_PurseDepositedCoin *coin)
 {
   TALER_denom_sig_free (&coin->cpi.denom_sig);
   if (! coin->cpi.no_age_commitment)
-    TALER_age_commitment_free (&coin->age_commitment);
+    GNUNET_free (coin->age_commitment.keys); /* Only the keys have been 
allocated */
 }
 
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]