tor

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

commit af264991a21960d8d0e23f5a190b8e17ff3e25b1
parent 58248adab617eb240d6d8accd7620a1cabc1a1ff
Author: Nick Mathewson <nickm@torproject.org>
Date:   Tue, 13 May 2025 20:29:41 -0400

Fix log message claiming that LibreSSL is OpenSSL

(We only want to check the OpenSSL version when it's actually OpenSSL
we're using.)

Fixes #41077; bug not in any released Tor.

Diffstat:
Msrc/lib/crypt_ops/crypto_openssl_mgt.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/lib/crypt_ops/crypto_openssl_mgt.c b/src/lib/crypt_ops/crypto_openssl_mgt.c @@ -301,6 +301,7 @@ int crypto_openssl_late_init(int useAccel, const char *accelName, const char *accelDir) { +#ifndef LIBRESSL_VERSION_NUMBER if (tor_OpenSSL_version_num() < OPENSSL_V_SERIES(3,0,0)) { log_warn(LD_CRYPTO, "Running with OpenSSL version \"%s\", " "which is no longer maintained by the OpenSSL project. " @@ -308,6 +309,7 @@ crypto_openssl_late_init(int useAccel, const char *accelName, "OpenSSL >=3.5 would be ideal.", OPENSSL_VERSION_TEXT); } +#endif if (useAccel > 0) { if (crypto_openssl_init_engines(accelName, accelDir) < 0)