commit 476016d3e4bf37dc6b7fc4cce65fe311b3666247
parent 5e05cef507aa77e9ace4127d8d730de169bbbaeb
Author: Christian Grothoff <christian@grothoff.org>
Date: Tue, 14 May 2024 10:27:11 +0200
store provider_name, instead of provider_section
Diffstat:
4 files changed, 18 insertions(+), 17 deletions(-)
diff --git a/src/exchange/taler-exchange-httpd_common_kyc.c b/src/exchange/taler-exchange-httpd_common_kyc.c
@@ -51,9 +51,9 @@ struct TEH_KycAmlTrigger
uint64_t process_row;
/**
- * name of the configuration section of the logic that was run
+ * name of the provider with the logic that was run
*/
- char *provider_section;
+ char *provider_name;
/**
* set to user ID at the provider, or NULL if not supported or unknown
@@ -161,6 +161,7 @@ kyc_aml_finished (void *cls,
&kat->account_id,
birthday,
GNUNET_TIME_timestamp_get (),
+ kat->provider_name,
kat->provider_user_id,
kat->provider_legitimization_id,
kat->expiration,
@@ -197,7 +198,7 @@ struct TEH_KycAmlTrigger *
TEH_kyc_finished (const struct GNUNET_AsyncScopeId *scope,
uint64_t process_row,
const struct TALER_PaytoHashP *account_id,
- const char *provider_section,
+ const char *provider_name,
const char *provider_user_id,
const char *provider_legitimization_id,
struct GNUNET_TIME_Absolute expiration,
@@ -213,8 +214,8 @@ TEH_kyc_finished (const struct GNUNET_AsyncScopeId *scope,
kat->scope = *scope;
kat->process_row = process_row;
kat->account_id = *account_id;
- kat->provider_section
- = GNUNET_strdup (provider_section);
+ kat->provider_name
+ = GNUNET_strdup (provider_name);
if (NULL != provider_user_id)
kat->provider_user_id
= GNUNET_strdup (provider_user_id);
@@ -253,7 +254,7 @@ TEH_kyc_finished_cancel (struct TEH_KycAmlTrigger *kat)
TALER_JSON_external_conversion_stop (kat->kyc_aml);
kat->kyc_aml = NULL;
}
- GNUNET_free (kat->provider_section);
+ GNUNET_free (kat->provider_name);
GNUNET_free (kat->provider_user_id);
GNUNET_free (kat->provider_legitimization_id);
json_decref (kat->attributes);
@@ -269,7 +270,7 @@ TEH_kyc_finished_cancel (struct TEH_KycAmlTrigger *kat)
bool
TEH_kyc_failed (uint64_t process_row,
const struct TALER_PaytoHashP *account_id,
- const char *provider_section,
+ const char *provider_name,
const char *provider_user_id,
const char *provider_legitimization_id)
{
@@ -279,7 +280,7 @@ TEH_kyc_failed (uint64_t process_row,
TEH_plugin->cls,
process_row,
account_id,
- provider_section,
+ provider_name,
provider_user_id,
provider_legitimization_id);
GNUNET_break (qs >= 0);
diff --git a/src/exchange/taler-exchange-httpd_common_kyc.h b/src/exchange/taler-exchange-httpd_common_kyc.h
@@ -61,7 +61,7 @@ struct TEH_KycAmlTrigger;
* @param scope the HTTP request logging scope
* @param process_row legitimization process the webhook was about
* @param account_id account the webhook was about
- * @param provider_section name of the configuration section of the logic that was run
+ * @param provider_name name of the provider with the logic that was run
* @param provider_user_id set to user ID at the provider, or NULL if not supported or unknown
* @param provider_legitimization_id set to legitimization process ID at the provider, or NULL if not supported or unknown
* @param expiration until when is the KYC check valid
@@ -76,7 +76,7 @@ struct TEH_KycAmlTrigger *
TEH_kyc_finished (const struct GNUNET_AsyncScopeId *scope,
uint64_t process_row,
const struct TALER_PaytoHashP *account_id,
- const char *provider_section,
+ const char *provider_name,
const char *provider_user_id,
const char *provider_legitimization_id,
struct GNUNET_TIME_Absolute expiration,
@@ -102,7 +102,7 @@ TEH_kyc_finished_cancel (struct TEH_KycAmlTrigger *kat);
*
* @param process_row legitimization process the webhook was about
* @param account_id account the webhook was about
- * @param provider_section name of the configuration section of the logic that was run
+ * @param provider_name name KYC provider with the logic that was run
* @param provider_user_id set to user ID at the provider, or NULL if not supported or unknown
* @param provider_legitimization_id set to legitimization process ID at the provider, or NULL if not supported or unknown
* @return true on success, false if updating the database failed
@@ -110,7 +110,7 @@ TEH_kyc_finished_cancel (struct TEH_KycAmlTrigger *kat);
bool
TEH_kyc_failed (uint64_t process_row,
const struct TALER_PaytoHashP *account_id,
- const char *provider_section,
+ const char *provider_name,
const char *provider_user_id,
const char *provider_legitimization_id);
diff --git a/src/exchange/taler-exchange-httpd_reserves_attest.c b/src/exchange/taler-exchange-httpd_reserves_attest.c
@@ -37,7 +37,7 @@
* checking the request timestamp?
*/
#define TIMESTAMP_TOLERANCE \
- GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 15)
+ GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 15)
/**
@@ -157,7 +157,7 @@ reply_reserve_attest_success (struct MHD_Connection *connection,
*
* @param cls our `struct ReserveAttestContext *`
* @param h_payto account for which the attribute data is stored
- * @param provider_section provider that must be checked
+ * @param provider_name provider that must be checked
* @param collection_time when was the data collected
* @param expiration_time when does the data expire
* @param enc_attributes_size number of bytes in @a enc_attributes
@@ -166,7 +166,7 @@ reply_reserve_attest_success (struct MHD_Connection *connection,
static void
kyc_process_cb (void *cls,
const struct TALER_PaytoHashP *h_payto,
- const char *provider_section,
+ const char *provider_name,
struct GNUNET_TIME_Timestamp collection_time,
struct GNUNET_TIME_Timestamp expiration_time,
size_t enc_attributes_size,
diff --git a/src/exchange/taler-exchange-httpd_reserves_get_attest.c b/src/exchange/taler-exchange-httpd_reserves_get_attest.c
@@ -63,7 +63,7 @@ struct ReserveAttestContext
*
* @param cls our `struct ReserveAttestContext *`
* @param h_payto account for which the attribute data is stored
- * @param provider_section provider that must be checked
+ * @param provider_name provider that must be checked
* @param collection_time when was the data collected
* @param expiration_time when does the data expire
* @param enc_attributes_size number of bytes in @a enc_attributes
@@ -72,7 +72,7 @@ struct ReserveAttestContext
static void
kyc_process_cb (void *cls,
const struct TALER_PaytoHashP *h_payto,
- const char *provider_section,
+ const char *provider_name,
struct GNUNET_TIME_Timestamp collection_time,
struct GNUNET_TIME_Timestamp expiration_time,
size_t enc_attributes_size,