From a69079ef6c4278a4653028e9587a4ecd84ae4aff Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 27 Nov 2020 00:36:19 +0100 Subject: add cmd to revoke exchange online signing key --- src/include/taler_signatures.h | 18 ++++++++++++++++++ src/include/taler_testing_lib.h | 31 ++++++++++++++++++------------- 2 files changed, 36 insertions(+), 13 deletions(-) (limited to 'src/include') diff --git a/src/include/taler_signatures.h b/src/include/taler_signatures.h index 90d772441..d80b267cf 100644 --- a/src/include/taler_signatures.h +++ b/src/include/taler_signatures.h @@ -1204,6 +1204,24 @@ struct TALER_MasterDenominationKeyRevocationPS }; +/** + * @brief Message confirming that an exchange online signing key was revoked. + */ +struct TALER_MasterSigningKeyRevocationPS +{ + /** + * Purpose is #TALER_SIGNATURE_MASTER_SIGNING_KEY_REVOKED. + */ + struct GNUNET_CRYPTO_EccSignaturePurpose purpose; + + /** + * The exchange's public key. + */ + struct TALER_ExchangePublicKeyP exchange_pub; + +}; + + /** * @brief Format used to generate the signature on a request to obtain * the wire transfer identifier associated with a deposit. diff --git a/src/include/taler_testing_lib.h b/src/include/taler_testing_lib.h index 9ddc28a3b..65df94945 100644 --- a/src/include/taler_testing_lib.h +++ b/src/include/taler_testing_lib.h @@ -2112,7 +2112,7 @@ TALER_TESTING_cmd_offline_sign_keys (const char *label, * @return the command */ struct TALER_TESTING_Command -TALER_TESTING_cmd_revoke_denomination ( +TALER_TESTING_cmd_revoke_denom_key ( const char *label, unsigned int expected_response_code, bool bad_sig, @@ -2120,32 +2120,37 @@ TALER_TESTING_cmd_revoke_denomination ( /** - * Have the auditor affirm that it is auditing the given - * denomination key and upload the auditor's signature to - * the exchange. + * Revoke an exchange online signing key. * * @param label command label. - * @param denom_ref reference to a command that identifies - * a denomination key (i.e. because it was used to - * withdraw a coin). + * @param expected_http_status expected HTTP status from exchange + * @param bad_sig should we use a bogus signature? + * @param signkey_ref reference to a command that identifies + * a signing key (i.e. because it was used to + * sign a deposit confirmation). * @return the command */ struct TALER_TESTING_Command -TALER_TESTING_cmd_auditor_add_denom_key (const char *denom_ref); +TALER_TESTING_cmd_revoke_sign_key ( + const char *label, + unsigned int expected_response_code, + bool bad_sig, + const char *signkey_ref); /** - * Revoke an exchange signing key. + * Have the auditor affirm that it is auditing the given + * denomination key and upload the auditor's signature to + * the exchange. * * @param label command label. * @param denom_ref reference to a command that identifies - * a signing key (i.e. because it was used to - * sign a deposit confirmation). + * a denomination key (i.e. because it was used to + * withdraw a coin). * @return the command */ struct TALER_TESTING_Command -TALER_TESTING_cmd_revoke_denom_key (const char *label, - const char *signkey_ref); +TALER_TESTING_cmd_auditor_add_denom_key (const char *denom_ref); /* *** Generic trait logic for implementing traits ********* */ -- cgit v1.2.3