[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] 36/124: store provider_name, instead of provider_sectio
From: |
gnunet |
Subject: |
[taler-exchange] 36/124: store provider_name, instead of provider_section |
Date: |
Tue, 17 Sep 2024 21:27:28 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to tag cg-aml-branch-compiles
in repository exchange.
commit f15e8e435b5772ba19c67b97bab4edb185d48e0c
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Tue May 14 10:27:11 2024 +0200
store provider_name, instead of provider_section
---
src/exchange/taler-exchange-httpd_common_kyc.c | 17 +++++++++--------
src/exchange/taler-exchange-httpd_common_kyc.h | 8 ++++----
src/exchange/taler-exchange-httpd_reserves_attest.c | 6 +++---
src/exchange/taler-exchange-httpd_reserves_get_attest.c | 4 ++--
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
index 6d6bd260e..141f99841 100644
--- 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
index 8198679c9..e391c8d3b 100644
--- 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
index 7bbebaad7..db3ff617a 100644
--- 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
index ae983682a..53eff1f5c 100644
--- 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,
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-exchange] 118/124: -fix FTBFS, (continued)
- [taler-exchange] 118/124: -fix FTBFS, gnunet, 2024/09/17
- [taler-exchange] 95/124: -fix auditor insanity, gnunet, 2024/09/17
- [taler-exchange] 119/124: add new ECs, gnunet, 2024/09/17
- [taler-exchange] 91/124: implement kycauth_in_insert, gnunet, 2024/09/17
- [taler-exchange] 116/124: move TALER_JSON_ symbols into libtalerjson where they belong, gnunet, 2024/09/17
- [taler-exchange] 109/124: -diagnostic notes, gnunet, 2024/09/17
- [taler-exchange] 122/124: fix age restriction FTBFS, gnunet, 2024/09/17
- [taler-exchange] 102/124: introduce default check, gnunet, 2024/09/17
- [taler-exchange] 82/124: enable kyc-start endpoint, gnunet, 2024/09/17
- [taler-exchange] 61/124: work on more GET handlers, gnunet, 2024/09/17
- [taler-exchange] 36/124: store provider_name, instead of provider_section,
gnunet <=
- [taler-exchange] 28/124: -add kyc data back for lookup_transfer_by_deposit, gnunet, 2024/09/17
- [taler-exchange] 59/124: -implement GET "/aml/$PUB/attributes/$H_PAYTO", gnunet, 2024/09/17
- [taler-exchange] 40/124: work on kyc API, gnunet, 2024/09/17
- [taler-exchange] 75/124: implement kyc-info client endpoint, gnunet, 2024/09/17
- [taler-exchange] 70/124: more work on KYC upload, gnunet, 2024/09/17
- [taler-exchange] 42/124: implement more basic KYCLOGIC functions, gnunet, 2024/09/17
- [taler-exchange] 79/124: -bump gana, gnunet, 2024/09/17
- [taler-exchange] 54/124: move ID computation into libtalerutil, gnunet, 2024/09/17
- [taler-exchange] 123/124: -fix age withdraw test, gnunet, 2024/09/17
- [taler-exchange] 84/124: add account_sig for authorization, gnunet, 2024/09/17