From 33835b124b301fe688c82093a0fd6e38d28a91d3 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 15 Jan 2021 15:38:47 +0100 Subject: fix DH revocation logic --- .../taler-exchange-httpd_management_denominations_HDP_revoke.c | 2 +- src/util/crypto_helper_denom.c | 6 ++++++ src/util/taler-helper-crypto-rsa.c | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/exchange/taler-exchange-httpd_management_denominations_HDP_revoke.c b/src/exchange/taler-exchange-httpd_management_denominations_HDP_revoke.c index 23e6cfb4..1a89652e 100644 --- a/src/exchange/taler-exchange-httpd_management_denominations_HDP_revoke.c +++ b/src/exchange/taler-exchange-httpd_management_denominations_HDP_revoke.c @@ -81,7 +81,7 @@ TEH_handler_management_denominations_HDP_revoke ( TALER_EC_GENERIC_DB_STORE_FAILED, "denomination revocation"); } - TEH_keys_update_states (); + TEH_keys_denomination_revoke (h_denom_pub); return TALER_MHD_reply_static ( connection, MHD_HTTP_NO_CONTENT, diff --git a/src/util/crypto_helper_denom.c b/src/util/crypto_helper_denom.c index 1ef24d3f..88eecec2 100644 --- a/src/util/crypto_helper_denom.c +++ b/src/util/crypto_helper_denom.c @@ -366,6 +366,9 @@ handle_mt_purge (struct TALER_CRYPTO_DenominationHelper *dh, GNUNET_break_op (0); return GNUNET_SYSERR; } + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Received revocation of denomination key %s\n", + GNUNET_h2s (&pn->h_denom_pub)); dh->dkc (dh->dkc_cls, NULL, GNUNET_TIME_UNIT_ZERO_ABS, @@ -681,6 +684,9 @@ TALER_CRYPTO_helper_denom_revoke ( } /* We are using SOCK_DGRAM, partial writes should not be possible */ GNUNET_break (((size_t) ret) == sizeof (rr)); + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Requested revocation of denomination key %s\n", + GNUNET_h2s (h_denom_pub)); } diff --git a/src/util/taler-helper-crypto-rsa.c b/src/util/taler-helper-crypto-rsa.c index ae75e5a2..779f7dae 100644 --- a/src/util/taler-helper-crypto-rsa.c +++ b/src/util/taler-helper-crypto-rsa.c @@ -958,7 +958,6 @@ handle_revoke_request (const struct sockaddr_un *addr, GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_ERROR, "unlink", dk->filename); - /* Setup replacement key */ denom = dk->denom; ndk = GNUNET_new (struct DenominationKey); @@ -985,7 +984,8 @@ handle_revoke_request (const struct sockaddr_un *addr, denom->keys_tail, dk); GNUNET_log (GNUNET_ERROR_TYPE_INFO, - "Revocation complete\n"); + "Revocation of denomination key %s complete\n", + GNUNET_h2s (&rr->h_denom_pub)); /* Tell clients this key is gone */ { -- cgit v1.2.3