From: Nick Mathewson Date: Wed, 14 May 2025 00:29:41 +0000 (-0400) Subject: Fix log message claiming that LibreSSL is OpenSSL X-Git-Tag: tor-0.4.9.3-alpha~50^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=af264991a21960d8d0e23f5a190b8e17ff3e25b1;p=thirdparty%2Ftor.git 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. --- 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)