commit 33835b124b301fe688c82093a0fd6e38d28a91d3
parent 8c113d2459b461a02927b1ce29207354cb1c275f
Author: Christian Grothoff <christian@grothoff.org>
Date: Fri, 15 Jan 2021 15:38:47 +0100
fix DH revocation logic
Diffstat:
3 files changed, 9 insertions(+), 3 deletions(-)
diff --git 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
@@ -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
@@ -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 */
{