exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit df9eadbb89ce32943e543349e756bdb470da5f37
parent 476016d3e4bf37dc6b7fc4cce65fe311b3666247
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue, 14 May 2024 10:29:41 +0200

DCE

Diffstat:
Msrc/kyclogic/kyclogic_api.c | 65-----------------------------------------------------------------
1 file changed, 0 insertions(+), 65 deletions(-)

diff --git a/src/kyclogic/kyclogic_api.c b/src/kyclogic/kyclogic_api.c @@ -1879,68 +1879,3 @@ TALER_KYCLOGIC_kyc_test_required ( /* end of kyclogic_api.c */ - -#if 0 - -void -TALER_KYCLOGIC_lookup_checks (const char *section_name, - unsigned int *num_checks, - char ***provided_checks) -{ - *num_checks = 0; - *provided_checks = NULL; - 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; - } -} - - -enum GNUNET_GenericReturnValue -TALER_KYCLOGIC_check_satisfiable ( - const char *check_name) -{ - for (unsigned int i = 0; i<num_kyc_checks; i++) - if (0 == strcmp (check_name, - kyc_checks[i]->name)) - return GNUNET_OK; - if (0 == strcmp (check_name, - KYC_CHECK_IMPOSSIBLE)) - return GNUNET_NO; - return GNUNET_SYSERR; -} - - -json_t * -TALER_KYCLOGIC_get_satisfiable () -{ - json_t *requirements; - - requirements = json_array (); - GNUNET_assert (NULL != requirements); - for (unsigned int i = 0; i<num_kyc_checks; i++) - GNUNET_assert ( - 0 == - json_array_append_new ( - requirements, - json_string (kyc_checks[i]->name))); - return requirements; -} - - -#endif