]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* modules/ssl/ssl_private.h: For OpenSSL >= 3.5.0 drop $SSLKEYLOGFILE
authorJoe Orton <jorton@apache.org>
Wed, 25 Jun 2025 12:53:18 +0000 (12:53 +0000)
committerJoe Orton <jorton@apache.org>
Wed, 25 Jun 2025 12:53:18 +0000 (12:53 +0000)
  handling inside mod_ssl where OpenSSL is built to handle that
  internally in libssl.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1926720 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/ssl_private.h

index 7ebd3b48b342e8802c951c62b44fcd46a3db3c25..7ff9ebf2e11946d7f0a9b8a9620c871f639545be 100644 (file)
@@ -296,8 +296,12 @@ void free_bio_methods(void);
 #define X509_get_notAfter   X509_getm_notAfter
 #endif
 
-#if OPENSSL_VERSION_NUMBER >= 0x10101000L && !defined(LIBRESSL_VERSION_NUMBER)
-#define HAVE_OPENSSL_KEYLOG
+/* For OpenSSL 3.5.0+, don't handle $SSLKEYLOGFILE since libssl does -
+ * unless OpenSSL was built with no-sslkeylog, which drops the env var
+ * handling, but leaves the API intact. */
+#if OPENSSL_VERSION_NUMBER >= 0x10101000L && !defined(LIBRESSL_VERSION_NUMBER) \
+    && (OPENSSL_VERSION_NUMBER <= 0x30500000L || !defined(OPENSSL_NO_SSLKEYLOG))
+#define HAVE_OPENSSL_KEYLOG 
 #endif
 
 #ifdef HAVE_FIPS