gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] branch master updated: implement TALER_KYCLOGIC_lookup_


From: gnunet
Subject: [taler-exchange] branch master updated: implement TALER_KYCLOGIC_lookup_checks
Date: Thu, 14 Sep 2023 19:53: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 c15667b3 implement TALER_KYCLOGIC_lookup_checks
c15667b3 is described below

commit c15667b38d3d2688472aeff7578116ac940150aa
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Thu Sep 14 19:53:39 2023 +0200

    implement TALER_KYCLOGIC_lookup_checks
---
 src/kyclogic/kyclogic_api.c | 22 ++++++++++++++++++++--
 1 file changed, 20 insertions(+), 2 deletions(-)

diff --git a/src/kyclogic/kyclogic_api.c b/src/kyclogic/kyclogic_api.c
index f583fd22..186799db 100644
--- a/src/kyclogic/kyclogic_api.c
+++ b/src/kyclogic/kyclogic_api.c
@@ -1,6 +1,6 @@
 /*
   This file is part of TALER
-  Copyright (C) 2022 Taler Systems SA
+  Copyright (C) 2022-2023 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
@@ -1487,7 +1487,25 @@ TALER_KYCLOGIC_lookup_checks (const char *section_name,
 {
   *num_checks = 0;
   *provided_checks = NULL;
-  GNUNET_break (0); // FIXME: NOT implemented!
+  for (unsigned int i = 0; i<num_kyc_providers; i++)
+  {
+    struct TALER_KYCLOGIC_KycProvider *kp = kyc_providers[i];
+
+    if (0 !=
+        strcasecmp (section_name,
+                    kp->provider_section_name))
+      continue;
+    *num_checks = kp->num_checks;
+    if (0 != kp->num_checks)
+    {
+      char **pc = GNUNET_new_array (kp->num_checks,
+                                    char *);
+      for (unsigned int i = 0; i<kp->num_checks; i++)
+        pc[i] = GNUNET_strdup (kp->provided_checks[i]->name);
+      *provided_checks = pc;
+    }
+    return;
+  }
 }
 
 

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