diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-05-16 16:47:58 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-07-29 12:18:41 +0200 |
commit | 127296c7dd4df1ed2752eda297af2e12a10b97e4 (patch) | |
tree | 7f6d3fc503abccddb42f84a40196c0090f15ca85 /src/kyclogic | |
parent | 8823084f2ae0f3d5b40795c91a6714d0259cd5e3 (diff) |
work all over the place
Diffstat (limited to 'src/kyclogic')
-rw-r--r-- | src/kyclogic/kyclogic_api.c | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/src/kyclogic/kyclogic_api.c b/src/kyclogic/kyclogic_api.c index 47c8784d3..a8909b721 100644 --- a/src/kyclogic/kyclogic_api.c +++ b/src/kyclogic/kyclogic_api.c @@ -76,6 +76,12 @@ struct TALER_KYCLOGIC_KycRule char *rule_name; /** + * Rule set with custom measures that this KYC rule + * is part of. FIXME: not initialized yet! + */ + const struct TALER_KYCLOGIC_LegitimizationRuleSet *lrs; + + /** * Timeframe to consider for computing the amount * to compare against the @e limit. Zero for the * wallet balance trigger (as not applicable). @@ -433,7 +439,13 @@ TALER_KYCLOGIC_rule2s (const struct TALER_KYCLOGIC_KycRule *r) json_t * -TALER_KYCLOGIC_rule2j (const struct TALER_KYCLOGIC_KycRule *r) +TALER_KYCLOGIC_rules_to_limits (const json_t *jrules) +{ +} + + +json_t * +TALER_KYCLOGIC_rule_to_measures (const struct TALER_KYCLOGIC_KycRule *r) { // FIXME! GNUNET_break (0); @@ -1535,6 +1547,19 @@ TALER_KYCLOGIC_kyc_init (const struct GNUNET_CONFIGURATION_Handle *cfg) } +/** + * Check if any KYC checks are enabled. + * + * @return true if KYC is enabled + * false if no KYC checks are possible + */ +bool +TALER_KYCLOGIC_is_enabled (void) +{ + return 0 != num_kyc_providers; +} + + void TALER_KYCLOGIC_kyc_done (void) { |