From af264991a21960d8d0e23f5a190b8e17ff3e25b1 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 13 May 2025 20:29:41 -0400 Subject: [PATCH] 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. --- src/lib/crypt_ops/crypto_openssl_mgt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/crypt_ops/crypto_openssl_mgt.c b/src/lib/crypt_ops/crypto_openssl_mgt.c index e008c0648b..426283f47a 100644 --- 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) -- 2.47.3