We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5a19d4 commit c2ffd2aCopy full SHA for c2ffd2a
modules/ssl/ssl_private.h
@@ -296,8 +296,12 @@ void free_bio_methods(void);
296
#define X509_get_notAfter X509_getm_notAfter
297
#endif
298
299
-#if OPENSSL_VERSION_NUMBER >= 0x10101000L && !defined(LIBRESSL_VERSION_NUMBER)
300
-#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
301
+ * handling, but leaves the API intact. */
302
+#if OPENSSL_VERSION_NUMBER >= 0x10101000L && !defined(LIBRESSL_VERSION_NUMBER) \
303
+ && (OPENSSL_VERSION_NUMBER <= 0x30500000L || !defined(OPENSSL_NO_SSLKEYLOG))
304
+#define HAVE_OPENSSL_KEYLOG
305
306
307
#ifdef HAVE_FIPS
0 commit comments