aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-08-04 12:52:29 +0200
committerChristian Grothoff <christian@grothoff.org>2024-08-04 12:52:53 +0200
commit7292df436a0b6dd0a97951acfcaa6d16be3194bb (patch)
treedf3a08c891a4d136548cf2b321c7ce9655c1094f
parent976589d69bb836957148506a35996f97640962a0 (diff)
add missing argument
-rw-r--r--src/include/taler_exchange_service.h3
-rw-r--r--src/lib/exchange_api_add_aml_decision.c9
2 files changed, 10 insertions, 2 deletions
diff --git a/src/include/taler_exchange_service.h b/src/include/taler_exchange_service.h
index 287d73a42..ab8b799ac 100644
--- a/src/include/taler_exchange_service.h
+++ b/src/include/taler_exchange_service.h
@@ -6313,6 +6313,8 @@ struct TALER_EXCHANGE_AccountRule
* decision is about
* @param decision_time when was the decision made
* @param successor_measure measure to activate after @a expiration_time if no rule applied
+ * @param new_check new KYC check to provide to the user,
+ * NULL for none
* @param expiration_time when do the new rules expire
* @param num_rules length of the @a rules array
* @param rules new rules for the account
@@ -6333,6 +6335,7 @@ TALER_EXCHANGE_add_aml_decision (
const struct TALER_PaytoHashP *h_payto,
struct GNUNET_TIME_Timestamp decision_time,
const char *successor_measure,
+ const char *new_check,
struct GNUNET_TIME_Timestamp expiration_time,
unsigned int num_rules,
const struct TALER_EXCHANGE_AccountRule *rules,
diff --git a/src/lib/exchange_api_add_aml_decision.c b/src/lib/exchange_api_add_aml_decision.c
index 74d7ed09c..1fee742b8 100644
--- a/src/lib/exchange_api_add_aml_decision.c
+++ b/src/lib/exchange_api_add_aml_decision.c
@@ -130,6 +130,7 @@ TALER_EXCHANGE_add_aml_decision (
const struct TALER_PaytoHashP *h_payto,
struct GNUNET_TIME_Timestamp decision_time,
const char *successor_measure,
+ const char *new_check,
struct GNUNET_TIME_Timestamp expiration_time,
unsigned int num_rules,
const struct TALER_EXCHANGE_AccountRule *rules,
@@ -215,14 +216,18 @@ TALER_EXCHANGE_add_aml_decision (
GNUNET_JSON_pack_allow_null (
GNUNET_JSON_pack_string ("successor_measure",
successor_measure)),
+ GNUNET_JSON_pack_allow_null (
+ GNUNET_JSON_pack_string ("new_check",
+ new_check)),
GNUNET_JSON_pack_array_steal ("rules",
jrules),
GNUNET_JSON_pack_object_steal ("custom_measures",
jmeasures)
);
- GNUNET_CRYPTO_eddsa_key_get_public (&officer_priv->eddsa_priv,
- &officer_pub.eddsa_pub);
+ GNUNET_CRYPTO_eddsa_key_get_public (
+ &officer_priv->eddsa_priv,
+ &officer_pub.eddsa_pub);
TALER_officer_aml_decision_sign (justification,
decision_time,
h_payto,