diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-05-07 14:56:08 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-07-29 12:18:40 +0200 |
commit | e362663b75830c89f620be750d36e343b0d8ca3d (patch) | |
tree | 86c9d8b7bbde0100136f14c08d7fa06e1e7dbbc8 /src/kyclogic/taler-exchange-kyc-tester.c | |
parent | 640f0a6186e4581d89b4616d4620ba7344d09ac1 (diff) |
basic refactoring of httpd for new AML, incomplete
Diffstat (limited to 'src/kyclogic/taler-exchange-kyc-tester.c')
-rw-r--r-- | src/kyclogic/taler-exchange-kyc-tester.c | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/src/kyclogic/taler-exchange-kyc-tester.c b/src/kyclogic/taler-exchange-kyc-tester.c index e942ff7a8..629de5995 100644 --- a/src/kyclogic/taler-exchange-kyc-tester.c +++ b/src/kyclogic/taler-exchange-kyc-tester.c @@ -278,9 +278,9 @@ static int run_webservice; static int global_ret; /** - * -r command-line flag. + * -m command-line flag. */ -static char *requirements; +static char *measure; /** * Handle for ongoing initiation operation. @@ -1466,19 +1466,21 @@ run (void *cls, return; } global_ret = EXIT_SUCCESS; - if (NULL != requirements) + if (NULL != measure) { struct TALER_KYCLOGIC_ProviderDetails *pd; if (GNUNET_OK != - TALER_KYCLOGIC_requirements_to_logic (requirements, + TALER_KYCLOGIC_requirements_to_logic (NULL, /* FIXME! */ + NULL, /* FIXME! */ + measure, &ih_logic, &pd, &provider_section_name)) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, - "Could not initiate KYC for requirements `%s' (configuration error?)\n", - requirements); + "Could not initiate KYC for measure `%s' (configuration error?)\n", + measure); global_ret = EXIT_NOTCONFIGURED; GNUNET_SCHEDULER_shutdown (); return; @@ -1575,11 +1577,11 @@ main (int argc, "run the integrated HTTP service", &run_webservice), GNUNET_GETOPT_option_string ( - 'R', - "requirements", - "CHECKS", - "initiate KYC check for the given list of (space-separated) checks", - &requirements), + 'm', + "measure", + "MEASURE_NAME", + "initiate KYC check for the selected measure", + &measure), GNUNET_GETOPT_option_string ( 'u', "user", |