summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_aml-decision.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/exchange/taler-exchange-httpd_aml-decision.c')
-rw-r--r--src/exchange/taler-exchange-httpd_aml-decision.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/exchange/taler-exchange-httpd_aml-decision.c b/src/exchange/taler-exchange-httpd_aml-decision.c
index c1439adc1..bf43fdbf2 100644
--- a/src/exchange/taler-exchange-httpd_aml-decision.c
+++ b/src/exchange/taler-exchange-httpd_aml-decision.c
@@ -165,6 +165,7 @@ make_aml_decision (void *cls,
TEH_plugin->cls,
res,
&dc->h_payto,
+ NULL, /* not a reserve */
&requirement_row);
if (qs < 0)
{
@@ -245,7 +246,6 @@ TEH_handler_post_aml_decision (
struct DecisionContext dc = {
.officer_pub = officer_pub
};
- uint32_t new_state32;
struct GNUNET_JSON_Specification spec[] = {
GNUNET_JSON_spec_fixed_auto ("officer_sig",
&dc.officer_sig),
@@ -258,8 +258,8 @@ TEH_handler_post_aml_decision (
&dc.justification),
GNUNET_JSON_spec_timestamp ("decision_time",
&dc.decision_time),
- GNUNET_JSON_spec_uint32 ("new_state",
- &new_state32),
+ TALER_JSON_spec_aml_decision ("new_state",
+ &dc.new_state),
GNUNET_JSON_spec_mark_optional (
GNUNET_JSON_spec_array_const ("kyc_requirements",
&dc.kyc_requirements),
@@ -281,7 +281,6 @@ TEH_handler_post_aml_decision (
return MHD_YES; /* failure */
}
}
- dc.new_state = (enum TALER_AmlDecisionState) new_state32;
TEH_METRICS_num_verifications[TEH_MT_SIGNATURE_EDDSA]++;
if (GNUNET_OK !=
TALER_officer_aml_decision_verify (dc.justification,