commit 6f35e6da1a7f59e54c971ae08e2811c3604930c4
parent bb5eb320aae1db61601fa4651710fa41f4bbbadf
Author: Christian Grothoff <christian@grothoff.org>
Date: Thu, 26 Dec 2024 16:29:32 +0100
allow always-available inputs also for fallback measures
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/kyclogic/kyclogic_api.c b/src/kyclogic/kyclogic_api.c
@@ -2940,7 +2940,7 @@ TALER_KYCLOGIC_kyc_init (
}
fprogram = find_program (m->prog_name);
GNUNET_assert (NULL != fprogram);
- if (API_NONE != fprogram->input_mask)
+ if (API_NONE != (fprogram->input_mask & (API_CONTEXT | API_ATTRIBUTES)))
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Fallback program %s of fallback measure `%s' used in AML program `%s' has required inputs, but fallback measures must not require any inputs\n",
@@ -2980,7 +2980,7 @@ TALER_KYCLOGIC_kyc_init (
}
fprogram = find_program (measure->prog_name);
GNUNET_assert (NULL != fprogram);
- if (API_NONE != fprogram->input_mask)
+ if (API_NONE != (fprogram->input_mask & (API_CONTEXT | API_ATTRIBUTES)))
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"AML program `%s' used fallback measure `%s' of KYC check `%s' has required inputs, but fallback measures must not require any inputs\n",
@@ -4174,7 +4174,7 @@ handle_aml_timeout (void *cls)
fprogram = find_program (m->prog_name);
/* Program associated with an original measure must exist */
GNUNET_assert (NULL != fprogram);
- if (API_NONE != fprogram->input_mask)
+ if (API_NONE != (fprogram->input_mask & (API_CONTEXT | API_ATTRIBUTES)))
{
/* We might not have recognized the fallback measure as such
because it was not used as such in the plain configuration,