diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-02-04 16:01:46 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-02-04 16:01:46 +0100 |
commit | 19da4bd63868a4c46959198ef95e4a8e1af38b77 (patch) | |
tree | 1b77d20b085e9835e750091e66e3d510972a27ab /src/exchange/taler-exchange-httpd_aml-decisions-get.c | |
parent | c3243aa39f924921e8bf52fe6290e4d738d6a20e (diff) | |
download | exchange-19da4bd63868a4c46959198ef95e4a8e1af38b77.tar.gz exchange-19da4bd63868a4c46959198ef95e4a8e1af38b77.tar.bz2 exchange-19da4bd63868a4c46959198ef95e4a8e1af38b77.zip |
add tests for new AML logic, plus related bugfixes
Diffstat (limited to 'src/exchange/taler-exchange-httpd_aml-decisions-get.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_aml-decisions-get.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/exchange/taler-exchange-httpd_aml-decisions-get.c b/src/exchange/taler-exchange-httpd_aml-decisions-get.c index 7c4a137d9..ad160b821 100644 --- a/src/exchange/taler-exchange-httpd_aml-decisions-get.c +++ b/src/exchange/taler-exchange-httpd_aml-decisions-get.c @@ -79,7 +79,6 @@ TEH_handler_aml_decisions_get ( const struct TALER_AmlOfficerPublicKeyP *officer_pub, const char *const args[]) { - struct TALER_AmlOfficerSignatureP officer_sig; enum TALER_AmlDecisionState decision; int delta = -20; unsigned long long start = INT64_MAX; @@ -118,30 +117,6 @@ TEH_handler_aml_decisions_get ( TALER_EC_GENERIC_ENDPOINT_UNKNOWN, args[1]); } - { - const char *sig_hdr; - - sig_hdr = MHD_lookup_connection_value (rc->connection, - MHD_HEADER_KIND, - TALER_AML_OFFICER_SIGNATURE_HEADER); - if ( (NULL == sig_hdr) || - (GNUNET_OK != - GNUNET_STRINGS_string_to_data (sig_hdr, - strlen (sig_hdr), - &officer_sig, - sizeof (officer_sig))) || - (GNUNET_OK != - TALER_officer_aml_query_verify (officer_pub, - &officer_sig)) ) - { - GNUNET_break_op (0); - return TALER_MHD_reply_with_error (rc->connection, - MHD_HTTP_BAD_REQUEST, - TALER_EC_EXCHANGE_GENERIC_AML_OFFICER_GET_SIGNATURE_INVALID, - sig_hdr); - } - TEH_METRICS_num_verifications[TEH_MT_SIGNATURE_EDDSA]++; - } { const char *p; |