summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-11-06 22:29:51 +0100
committerChristian Grothoff <christian@grothoff.org>2022-11-06 22:29:51 +0100
commitf8e9241a3d4adb3e31e8691782136aaed88b41da (patch)
tree0c7e34c8b6db55e42294e843e3f9363d4d754b98 /src/lib
parent6d59c19f363d0eb7a0ba94646914624df56bd14a (diff)
downloadexchange-f8e9241a3d4adb3e31e8691782136aaed88b41da.tar.gz
exchange-f8e9241a3d4adb3e31e8691782136aaed88b41da.tar.bz2
exchange-f8e9241a3d4adb3e31e8691782136aaed88b41da.zip
fix #7427
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/exchange_api_kyc_check.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/exchange_api_kyc_check.c b/src/lib/exchange_api_kyc_check.c
index 6dfbb48d7..68a40a962 100644
--- a/src/lib/exchange_api_kyc_check.c
+++ b/src/lib/exchange_api_kyc_check.c
@@ -96,6 +96,7 @@ handle_kyc_check_finished (void *cls,
break;
case MHD_HTTP_OK:
{
+ json_t *kyc_details;
struct GNUNET_JSON_Specification spec[] = {
GNUNET_JSON_spec_fixed_auto ("exchange_sig",
&ks.details.success.exchange_sig),
@@ -103,6 +104,8 @@ handle_kyc_check_finished (void *cls,
&ks.details.success.exchange_pub),
GNUNET_JSON_spec_timestamp ("now",
&ks.details.success.timestamp),
+ GNUNET_JSON_spec_json ("kyc_details",
+ &kyc_details),
GNUNET_JSON_spec_end ()
};
const struct TALER_EXCHANGE_Keys *key_state;
@@ -117,6 +120,7 @@ handle_kyc_check_finished (void *cls,
ks.ec = TALER_EC_GENERIC_INVALID_RESPONSE;
break;
}
+ ks.details.success.kyc_details = kyc_details;
key_state = TALER_EXCHANGE_get_keys (kch->exchange);
if (GNUNET_OK !=
TALER_EXCHANGE_test_signing_key (key_state,
@@ -132,6 +136,7 @@ handle_kyc_check_finished (void *cls,
if (GNUNET_OK !=
TALER_exchange_online_account_setup_success_verify (
&kch->h_payto,
+ ks.details.success.kyc_details,
ks.details.success.timestamp,
&ks.details.success.exchange_pub,
&ks.details.success.exchange_sig))