From c15667b38d3d2688472aeff7578116ac940150aa Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 14 Sep 2023 19:53:39 +0200 Subject: implement TALER_KYCLOGIC_lookup_checks --- src/kyclogic/kyclogic_api.c | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'src/kyclogic') diff --git a/src/kyclogic/kyclogic_api.c b/src/kyclogic/kyclogic_api.c index f583fd225..186799dbb 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; iprovider_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; inum_checks; i++) + pc[i] = GNUNET_strdup (kp->provided_checks[i]->name); + *provided_checks = pc; + } + return; + } } -- cgit v1.2.3