]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix log message claiming that LibreSSL is OpenSSL
authorNick Mathewson <nickm@torproject.org>
Wed, 14 May 2025 00:29:41 +0000 (20:29 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 14 May 2025 00:29:41 +0000 (20:29 -0400)
(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

index e008c0648bb2ed8f944f4ae51aaee7c58280fe9c..426283f47ab9867d30c3e7a235d6b2820ff29950 100644 (file)
@@ -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)