diff options
Diffstat (limited to 'src/exchange/taler-exchange-httpd_common_kyc.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_common_kyc.c | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/src/exchange/taler-exchange-httpd_common_kyc.c b/src/exchange/taler-exchange-httpd_common_kyc.c index 2a7193f4d..bcee5a0d2 100644 --- a/src/exchange/taler-exchange-httpd_common_kyc.c +++ b/src/exchange/taler-exchange-httpd_common_kyc.c @@ -104,7 +104,8 @@ struct TEH_KycAmlTrigger * * @param cls closure of type `struct TEH_KycAmlTrigger *` * @param status_type how did the process die - * @param code termination status code from the process + * @param code termination status code from the process, + * non-zero if AML checks are required next * @param result some JSON result, NULL if we failed to get an JSON output */ static void @@ -278,3 +279,24 @@ TEH_kyc_finished_cancel (struct TEH_KycAmlTrigger *kat) } GNUNET_free (kat); } + + +bool +TEH_kyc_failed (uint64_t process_row, + const struct TALER_PaytoHashP *account_id, + const char *provider_section, + const char *provider_user_id, + const char *provider_legitimization_id) +{ + enum GNUNET_DB_QueryStatus qs; + + qs = TEH_plugin->insert_kyc_failure ( + TEH_plugin->cls, + process_row, + account_id, + provider_section, + provider_user_id, + provider_legitimization_id); + GNUNET_break (qs >= 0); + return qs >= 0; +} |