[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] 45/124: add KYC auth signature check
From: |
gnunet |
Subject: |
[taler-exchange] 45/124: add KYC auth signature check |
Date: |
Tue, 17 Sep 2024 21:27:37 +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 de229f77659600a78a92003f36a82058f6e95e58
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Thu May 16 20:36:28 2024 +0200
add KYC auth signature check
---
src/exchange/taler-exchange-httpd_kyc-check.c | 28 ++++++++++++++++++++++++++-
1 file changed, 27 insertions(+), 1 deletion(-)
diff --git a/src/exchange/taler-exchange-httpd_kyc-check.c
b/src/exchange/taler-exchange-httpd_kyc-check.c
index b3e850f25..61b4eb974 100644
--- a/src/exchange/taler-exchange-httpd_kyc-check.c
+++ b/src/exchange/taler-exchange-httpd_kyc-check.c
@@ -290,7 +290,33 @@ TEH_handler_kyc_check (
}
}
- // FIXME: check signature!
+ if (GNUNET_OK !=
+ TALER_account_kyc_auth_verify (&account_pub,
+ &kyp->account_sig))
+ {
+ char *diag;
+ MHD_RESULT mret;
+
+ json_decref (jrules);
+ jrules = NULL;
+ if (GNUNET_is_zero (&account_pub))
+ {
+ return TALER_MHD_reply_with_error (
+ rc->connection,
+ MHD_HTTP_CONFLICT,
+ TALER_EC_EXCHANGE_KYC_CHECK_AUTHORIZATION_KEY_UNKNOWN,
+ NULL);
+ }
+ diag = GNUNET_STRINGS_data_to_string_alloc (&account_pub,
+ sizeof (account_pub));
+ mret = TALER_MHD_reply_with_error (
+ rc->connection,
+ MHD_HTTP_FORBIDDEN,
+ TALER_EC_EXCHANGE_KYC_CHECK_AUTHORIZATION_FAILED,
+ diag);
+ GNUNET_free (diag);
+ return mret;
+ }
jlimits = TALER_KYCLOGIC_rules_to_limits (jrules);
if (NULL == jlimits)
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-exchange] 33/124: implement kyc_test_required, (continued)
- [taler-exchange] 33/124: implement kyc_test_required, gnunet, 2024/09/17
- [taler-exchange] 62/124: implement select_aml_statistics, gnunet, 2024/09/17
- [taler-exchange] 43/124: implement pg_lookup_kyc_requirement_by_row, gnunet, 2024/09/17
- [taler-exchange] 78/124: WIP: kyc-start, gnunet, 2024/09/17
- [taler-exchange] 44/124: -bump gana, gnunet, 2024/09/17
- [taler-exchange] 47/124: -towards having 3 SPAs, gnunet, 2024/09/17
- [taler-exchange] 71/124: -work on upload, gnunet, 2024/09/17
- [taler-exchange] 38/124: work on KycRule parsing, gnunet, 2024/09/17
- [taler-exchange] 24/124: fix purses_merge, gnunet, 2024/09/17
- [taler-exchange] 66/124: implement get_kyc_statistics, gnunet, 2024/09/17
- [taler-exchange] 45/124: add KYC auth signature check,
gnunet <=
- [taler-exchange] 14/124: get exchange_api_kyc_check.c to build again, gnunet, 2024/09/17
- [taler-exchange] 18/124: fix kyclogic_api.c FTBFS, gnunet, 2024/09/17
- [taler-exchange] 07/124: implement new configuration parser, gnunet, 2024/09/17
- [taler-exchange] 30/124: force exchange-httpd to compile, gnunet, 2024/09/17
- [taler-exchange] 22/124: basic refactoring of httpd for new AML, incomplete, gnunet, 2024/09/17
- [taler-exchange] 50/124: -fix linker issue, gnunet, 2024/09/17
- [taler-exchange] 74/124: enable kyc-info endpoint, gnunet, 2024/09/17
- [taler-exchange] 39/124: work on KycRule parsing, gnunet, 2024/09/17
- [taler-exchange] 56/124: work on select_aml_decisions, gnunet, 2024/09/17
- [taler-exchange] 65/124: finish AML measures, gnunet, 2024/09/17