mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
hs: Fix digest256 to base64 issue in a log statement
Part of #23480. Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
+2
-4
@@ -234,8 +234,7 @@ cache_clean_v3_as_dir(time_t now, time_t global_cutoff)
|
||||
/* Logging. */
|
||||
{
|
||||
char key_b64[BASE64_DIGEST256_LEN + 1];
|
||||
base64_encode(key_b64, sizeof(key_b64), (const char *) key,
|
||||
DIGEST256_LEN, 0);
|
||||
digest256_to_base64(key_b64, (const char *) key);
|
||||
log_info(LD_REND, "Removing v3 descriptor '%s' from HSDir cache",
|
||||
safe_str_client(key_b64));
|
||||
}
|
||||
@@ -655,8 +654,7 @@ cache_clean_v3_as_client(time_t now)
|
||||
/* Logging. */
|
||||
{
|
||||
char key_b64[BASE64_DIGEST256_LEN + 1];
|
||||
base64_encode(key_b64, sizeof(key_b64), (const char *) key,
|
||||
DIGEST256_LEN, 0);
|
||||
digest256_to_base64(key_b64, (const char *) key);
|
||||
log_info(LD_REND, "Removing hidden service v3 descriptor '%s' "
|
||||
"from client cache",
|
||||
safe_str_client(key_b64));
|
||||
|
||||
Reference in New Issue
Block a user