aboutsummaryrefslogtreecommitdiff
path: root/src/kyclogic
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-06-23 11:26:22 +0200
committerChristian Grothoff <christian@grothoff.org>2024-07-29 12:18:43 +0200
commitcbc42d229bdd1b33fee821d0877daf74c098f9c4 (patch)
tree12f672b37a0678cb1b7a580f5bb34551a28c24ba /src/kyclogic
parent10d8da9c34cf1a41d9a4cfa4b040eed945b9e944 (diff)
handle POST aml /decision
Diffstat (limited to 'src/kyclogic')
-rw-r--r--src/kyclogic/kyclogic_api.c24
1 files changed, 16 insertions, 8 deletions
diff --git a/src/kyclogic/kyclogic_api.c b/src/kyclogic/kyclogic_api.c
index 19b02c899..518c9fc1c 100644
--- a/src/kyclogic/kyclogic_api.c
+++ b/src/kyclogic/kyclogic_api.c
@@ -301,6 +301,14 @@ static struct TALER_KYCLOGIC_AmlProgram **aml_programs;
static unsigned int num_aml_programs;
+struct GNUNET_TIME_Timestamp
+TALER_KYCLOGIC_rules_get_expiration (
+ const struct TALER_KYCLOGIC_LegitimizationRuleSet *lrs)
+{
+ return lrs->expiration_time;
+}
+
+
/**
* Lookup a KYC check by @a check_name
*
@@ -334,20 +342,20 @@ TALER_KYCLOGIC_rules_parse (const json_t *jlrs)
const json_t *jrules;
const json_t *jcustom_measures = NULL;
struct GNUNET_JSON_Specification spec[] = {
+ GNUNET_JSON_spec_timestamp (
+ "expiration_time",
+ &expiration_time),
GNUNET_JSON_spec_mark_optional (
- GNUNET_JSON_spec_object_const ("custom_measures",
- &jcustom_measures),
+ GNUNET_JSON_spec_string (
+ "successor_measure",
+ &successor_measure),
NULL),
GNUNET_JSON_spec_array_const ("rules",
&jrules),
GNUNET_JSON_spec_mark_optional (
- GNUNET_JSON_spec_string (
- "successor_measure",
- &successor_measure),
+ GNUNET_JSON_spec_object_const ("custom_measures",
+ &jcustom_measures),
NULL),
- GNUNET_JSON_spec_timestamp (
- "expiration_time",
- &expiration_time),
GNUNET_JSON_spec_end ()
};
struct TALER_KYCLOGIC_LegitimizationRuleSet *lrs;