aboutsummaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_aml-decision-get.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-02-02 14:55:56 +0100
committerChristian Grothoff <christian@grothoff.org>2023-02-02 14:55:56 +0100
commit3898054b1070db0c6be0fa9f6772637069aa34e2 (patch)
treecbe917775e0a44ef4e3140d9d605194f20136c39 /src/exchange/taler-exchange-httpd_aml-decision-get.c
parenteab95d015412833c96568fb91d25aa23c53c45cd (diff)
more work on KYC/AML decision inspection
Diffstat (limited to 'src/exchange/taler-exchange-httpd_aml-decision-get.c')
-rw-r--r--src/exchange/taler-exchange-httpd_aml-decision-get.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/exchange/taler-exchange-httpd_aml-decision-get.c b/src/exchange/taler-exchange-httpd_aml-decision-get.c
index 0754c0b8..09f9c8e8 100644
--- a/src/exchange/taler-exchange-httpd_aml-decision-get.c
+++ b/src/exchange/taler-exchange-httpd_aml-decision-get.c
@@ -64,8 +64,10 @@ kyc_attribute_cb (
json_t *kyc_attributes = cls;
json_t *attributes;
- attributes = NULL; // FIXME
-
+ attributes = TALER_CRYPTO_kyc_attributes_decrypt (&TEH_attribute_key,
+ enc_attributes,
+ enc_attributes_size);
+ GNUNET_break (NULL != attributes);
GNUNET_assert (
0 ==
json_array_append (
@@ -77,8 +79,9 @@ kyc_attribute_cb (
collection_time),
GNUNET_JSON_pack_timestamp ("expiration_time",
expiration_time),
- GNUNET_JSON_pack_object_steal ("attributes",
- attributes)
+ GNUNET_JSON_pack_allow_null (
+ GNUNET_JSON_pack_object_steal ("attributes",
+ attributes))
)));
}