From a3548f0efb5cc970497c07165322317d904be187 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 30 Nov 2020 11:51:42 +0100 Subject: add command to add auditor's denomination signature --- src/include/taler_exchange_service.h | 3 ++- src/include/taler_testing_lib.h | 39 ++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/taler_exchange_service.h b/src/include/taler_exchange_service.h index 19017eac1..d1ce5a234 100644 --- a/src/include/taler_exchange_service.h +++ b/src/include/taler_exchange_service.h @@ -2561,7 +2561,8 @@ struct TALER_EXCHANGE_AuditorAddDenominationHandle; * @param url HTTP base URL for the exchange * @param h_denom_pub hash of the public key of the denomination * @param auditor_pub public key of the auditor - * @param auditor_sig signature of the auditor + * @param auditor_sig signature of the auditor, of + * purpose #TALER_SIGNATURE_AUDITOR_EXCHANGE_KEYS * @param cb function to call with the exchange's result * @param cb_cls closure for @a cb * @return the request handle; NULL upon error diff --git a/src/include/taler_testing_lib.h b/src/include/taler_testing_lib.h index 65df94945..f27938262 100644 --- a/src/include/taler_testing_lib.h +++ b/src/include/taler_testing_lib.h @@ -2051,6 +2051,45 @@ TALER_TESTING_cmd_auditor_del (const char *label, bool bad_sig); +/** + * Add affirmation that the auditor is auditing the given + * denomination. + * The information about the auditor is taken from the + * "[auditor]" section in the configuration file. + * + * @param label command label. + * @param expected_http_status expected HTTP status from exchange + * @param denom_ref reference to a command identifying a denomination key + * @param bad_sig should we use a bogus signature? + * @return the command + */ +struct TALER_TESTING_Command +TALER_TESTING_cmd_auditor_add_denom_sig (const char *label, + unsigned int expected_http_status, + const char *denom_ref, + bool bad_sig); + +/** + * Add statement about wire fees of the exchange. This is always + * done for a few hours around the current time (for the test). + * + * @param label command label. + * @param wire_method wire method to set wire fees for + * @param wire_fee the wire fee to affirm + * @param closing_fee the closing fee to affirm + * @param expected_http_status expected HTTP status from exchange + * @param bad_sig should we use a bogus signature? + * @return the command + */ +struct TALER_TESTING_Command +TALER_TESTING_cmd_set_wire_fee (const char *label, + const char *wire_method, + const char *wire_fee, + const char *closing_fee, + unsigned int expected_http_status, + bool bad_sig); + + /** * Add the given payto-URI bank account to the list of bank * accounts used by the exchange. -- cgit v1.2.3