gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] branch master updated: fix parsing of verboten in non-c


From: gnunet
Subject: [taler-exchange] branch master updated: fix parsing of verboten in non-config rules
Date: Thu, 07 Nov 2024 16:18:34 +0100

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

dold pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 2bc916181 fix parsing of verboten in non-config rules
2bc916181 is described below

commit 2bc9161817dae676f1205bdcb2ef1466d5718da4
Author: Florian Dold <florian@dold.me>
AuthorDate: Thu Nov 7 16:18:29 2024 +0100

    fix parsing of verboten in non-config rules
---
 src/kyclogic/kyclogic_api.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/src/kyclogic/kyclogic_api.c b/src/kyclogic/kyclogic_api.c
index 910f98c62..1d15cb2f0 100644
--- a/src/kyclogic/kyclogic_api.c
+++ b/src/kyclogic/kyclogic_api.c
@@ -631,6 +631,10 @@ TALER_KYCLOGIC_rules_parse (const json_t *jlrs)
             GNUNET_break (0);
             goto cleanup;
           }
+          if (0 == strcasecmp (str, KYC_MEASURE_IMPOSSIBLE))
+          {
+            rule->verboten = true;
+          }
           rule->next_measures[j]
             = GNUNET_strdup (str);
         }
@@ -962,6 +966,13 @@ TALER_KYCLOGIC_rule_get_instant_measure (
     const char *measure_name = r->next_measures[i];
     const struct TALER_KYCLOGIC_Measure *ms;
 
+    if (0 == strcasecmp (measure_name, "verboten"))
+    {
+      /* If any of the measures if verboten, we do not even
+      consider execution of the instant measure. */
+      return NULL;
+    }
+
     ms = find_measure (lrs,
                        measure_name);
     if (NULL == ms)

-- 
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]