tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 3871742ed13cd4bfe7708ce644597edad6603fce
parent 6a35cdeedd4afe42f8860d372c855a0af0e9f235
Author: Roger Dingledine <arma@torproject.org>
Date:   Sun,  8 Jun 2025 21:50:36 -0400

log "list of supported TLS groups" only once

We had been logging it every two hours forever, even though it's based
on the version of OpenSSL we're using it so it will never change.

Fixes bug #41093.

The fix is an improvement on commit ba88ad6b which addressed #41058.

Not adding a changes file since those commits haven't gone out in a
release yet either.

Diffstat:
Msrc/lib/tls/tortls_openssl.c | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/lib/tls/tortls_openssl.c b/src/lib/tls/tortls_openssl.c @@ -713,7 +713,12 @@ tor_tls_context_new(crypto_pk_t *identity, unsigned int key_lifetime, } int r = (int) SSL_CTX_set1_groups_list(result->ctx, list); if (r == 1) { - log_notice(LD_NET, "Set list of supported TLS groups to: %s", list); + static bool have_logged_already = false; + if (!have_logged_already) { + /* say it only once at startup, since the answer won't change */ + log_notice(LD_NET, "Set list of supported TLS groups to: %s", list); + have_logged_already = true; + } success = true; break; }