fix DH revocation logic

This commit is contained in:
Christian Grothoff 2021-01-15 15:38:47 +01:00
parent 8c113d2459
commit 33835b124b
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
3 changed files with 9 additions and 3 deletions

View File

@ -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,

View File

@ -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));
}

View File

@ -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 */
{