gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] branch master updated: fix #9101


From: gnunet
Subject: [taler-exchange] branch master updated: fix #9101
Date: Thu, 22 Aug 2024 17:49:42 +0200

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

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 1590a0aa6 fix #9101
1590a0aa6 is described below

commit 1590a0aa64d6b9f83b00c2a043e9e50fe0d9ffaf
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Thu Aug 22 17:49:28 2024 +0200

    fix #9101
---
 src/kyclogic/kyclogic_api.c            | 48 +++++++++++++++++-----------------
 src/kyclogic/plugin_kyclogic_oauth2.c  | 16 ++++++------
 src/kyclogic/plugin_kyclogic_persona.c | 16 ++++++------
 3 files changed, 40 insertions(+), 40 deletions(-)

diff --git a/src/kyclogic/kyclogic_api.c b/src/kyclogic/kyclogic_api.c
index c5dbd8136..f7364bd96 100644
--- a/src/kyclogic/kyclogic_api.c
+++ b/src/kyclogic/kyclogic_api.c
@@ -333,8 +333,8 @@ find_check (const char *check_name)
     struct TALER_KYCLOGIC_KycCheck *kyc_check
       = kyc_checks[i];
 
-    if (0 == strcmp (check_name,
-                     kyc_check->check_name))
+    if (0 == strcasecmp (check_name,
+                         kyc_check->check_name))
       return kyc_check;
   }
   GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
@@ -358,8 +358,8 @@ find_program (const char *program_name)
     struct TALER_KYCLOGIC_AmlProgram *program
       = aml_programs[i];
 
-    if (0 == strcmp (program_name,
-                     program->program_name))
+    if (0 == strcasecmp (program_name,
+                         program->program_name))
       return program;
   }
   GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
@@ -383,8 +383,8 @@ find_provider (const char *provider_name)
     struct TALER_KYCLOGIC_KycProvider *provider
       = kyc_providers[i];
 
-    if (0 == strcmp (provider_name,
-                     provider->provider_name))
+    if (0 == strcasecmp (provider_name,
+                         provider->provider_name))
       return provider;
   }
   GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
@@ -829,8 +829,8 @@ TALER_KYCLOGIC_rules_to_limits (const json_t *jrules)
         json_decref (limits);
         return NULL;
       }
-      if (0 == strcmp (KYC_MEASURE_IMPOSSIBLE,
-                       val))
+      if (0 == strcasecmp (KYC_MEASURE_IMPOSSIBLE,
+                           val))
         forbidden = true;
     }
 
@@ -876,8 +876,8 @@ find_measure (
       const struct TALER_KYCLOGIC_Measure *cm
         = &lrs->custom_measures[i];
 
-      if (0 == strcmp (measure_name,
-                       cm->measure_name))
+      if (0 == strcasecmp (measure_name,
+                           cm->measure_name))
         return cm;
     }
   }
@@ -889,8 +889,8 @@ find_measure (
       const struct TALER_KYCLOGIC_Measure *cm
         = &default_rules.custom_measures[i];
 
-      if (0 == strcmp (measure_name,
-                       cm->measure_name))
+      if (0 == strcasecmp (measure_name,
+                           cm->measure_name))
         return cm;
     }
   }
@@ -989,8 +989,8 @@ TALER_KYCLOGIC_get_measure (
   json_t *mi;
   json_t *jmeasures;
 
-  if (0 == strcmp ("verboten",
-                   measure_name))
+  if (0 == strcasecmp ("verboten",
+                       measure_name))
   {
     jmeasures = json_array ();
     GNUNET_assert (NULL != jmeasures);
@@ -1314,8 +1314,8 @@ load_logic (const struct GNUNET_CONFIGURATION_Handle *cfg,
                    "libtaler_plugin_kyclogic_%s",
                    name);
   for (unsigned int i = 0; i<num_kyc_logics; i++)
-    if (0 == strcmp (lib_name,
-                     kyc_logics[i]->library_name))
+    if (0 == strcasecmp (lib_name,
+                         kyc_logics[i]->library_name))
     {
       GNUNET_free (lib_name);
       return kyc_logics[i];
@@ -2475,8 +2475,8 @@ TALER_KYCLOGIC_get_original_measure (
   }
 
   for (unsigned int i = 0; i<num_kyc_checks; i++)
-    if (0 == strcmp (measure->check_name,
-                     kyc_checks[i]->check_name))
+    if (0 == strcasecmp (measure->check_name,
+                         kyc_checks[i]->check_name))
     {
       kcc->check = kyc_checks[i];
       kcc->prog_name = measure->prog_name;
@@ -2512,8 +2512,8 @@ TALER_KYCLOGIC_requirements_to_check (
   {
     for (unsigned int i = 0; i<kyc_rule->num_measures; i++)
     {
-      if (0 != strcmp (measure_name,
-                       kyc_rule->next_measures[i]))
+      if (0 != strcasecmp (measure_name,
+                           kyc_rule->next_measures[i]))
         continue;
       found = true;
       break;
@@ -2556,8 +2556,8 @@ TALER_KYCLOGIC_requirements_to_check (
   }
 
   for (unsigned int i = 0; i<num_kyc_checks; i++)
-    if (0 == strcmp (measure->check_name,
-                     kyc_checks[i]->check_name))
+    if (0 == strcasecmp (measure->check_name,
+                         kyc_checks[i]->check_name))
     {
       kcc->check = kyc_checks[i];
       kcc->prog_name = measure->prog_name;
@@ -2624,8 +2624,8 @@ TALER_KYCLOGIC_kyc_get_details (
       = kyc_providers[i];
 
     if (0 !=
-        strcmp (kp->logic->name,
-                logic_name))
+        strcasecmp (kp->logic->name,
+                    logic_name))
       continue;
     if (GNUNET_OK !=
         cb (cb_cls,
diff --git a/src/kyclogic/plugin_kyclogic_oauth2.c 
b/src/kyclogic/plugin_kyclogic_oauth2.c
index 1c0b96aee..50d26d1f2 100644
--- a/src/kyclogic/plugin_kyclogic_oauth2.c
+++ b/src/kyclogic/plugin_kyclogic_oauth2.c
@@ -426,8 +426,8 @@ oauth2_load_configuration (void *cls,
     const char *extra = strchr (s, '#');
     const char *slash = strrchr (s, '/');
 
-    if ( (0 != strcmp (extra,
-                       "#setup")) ||
+    if ( (0 != strcasecmp (extra,
+                           "#setup")) ||
          (NULL == slash) )
     {
       GNUNET_log_config_invalid (GNUNET_ERROR_TYPE_ERROR,
@@ -1477,14 +1477,14 @@ oauth2_proof (void *cls,
                 "OAuth2 process %llu failed with error `%s'\n",
                 (unsigned long long) process_row,
                 err);
-    if (0 == strcmp (err,
-                     "server_error"))
+    if (0 == strcasecmp (err,
+                         "server_error"))
       ph->status = TALER_KYCLOGIC_STATUS_PROVIDER_FAILED;
-    else if (0 == strcmp (err,
-                          "unauthorized_client"))
+    else if (0 == strcasecmp (err,
+                              "unauthorized_client"))
       ph->status = TALER_KYCLOGIC_STATUS_FAILED;
-    else if (0 == strcmp (err,
-                          "temporarily_unavailable"))
+    else if (0 == strcasecmp (err,
+                              "temporarily_unavailable"))
       ph->status = TALER_KYCLOGIC_STATUS_PENDING;
     else
       ph->status = TALER_KYCLOGIC_STATUS_INTERNAL_ERROR;
diff --git a/src/kyclogic/plugin_kyclogic_persona.c 
b/src/kyclogic/plugin_kyclogic_persona.c
index 975003146..e9bc69a46 100644
--- a/src/kyclogic/plugin_kyclogic_persona.c
+++ b/src/kyclogic/plugin_kyclogic_persona.c
@@ -1138,8 +1138,8 @@ handle_proof_finished (void *cls,
             GNUNET_JSON_parse (data,
                                spec,
                                NULL, NULL)) ||
-           (0 != strcmp (type,
-                         "inquiry")) )
+           (0 != strcasecmp (type,
+                             "inquiry")) )
       {
         GNUNET_break_op (0);
         return_invalid_response (ph,
@@ -1220,8 +1220,8 @@ handle_proof_finished (void *cls,
               "data"),
             "id"));
 
-        if (0 != strcmp (status,
-                         "completed"))
+        if (0 != strcasecmp (status,
+                             "completed"))
         {
           proof_generic_reply (
             ph,
@@ -1675,8 +1675,8 @@ handle_webhook_finished (void *cls,
             GNUNET_JSON_parse (data,
                                spec,
                                NULL, NULL)) ||
-           (0 != strcmp (type,
-                         "inquiry")) )
+           (0 != strcasecmp (type,
+                             "inquiry")) )
       {
         GNUNET_break_op (0);
         json_dumpf (j,
@@ -1755,8 +1755,8 @@ handle_webhook_finished (void *cls,
               "data"),
             "id"));
 
-        if (0 != strcmp (status,
-                         "completed"))
+        if (0 != strcasecmp (status,
+                             "completed"))
         {
           webhook_generic_reply (wh,
                                  TALER_KYCLOGIC_STATUS_FAILED,

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