]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: ssl: enable keylog for WolfSSL
authorWilliam Lallemand <wlallemand@haproxy.com>
Mon, 9 Oct 2023 19:34:25 +0000 (21:34 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Mon, 9 Oct 2023 19:34:25 +0000 (21:34 +0200)
Enable the keylog feature when linking against an WolfSSL library which
has the 'HAVE_SECRET_CALLBACK' define.

Only supports <= TLSv1.2 secret dump.

include/haproxy/openssl-compat.h

index 78fbad4156ebc684bdf609e466409cd6fff5f3fa..5639468c98df2fbd1abb2f439c9ffba467ff6171 100644 (file)
@@ -99,7 +99,7 @@
 #define HAVE_SSL_SCTL
 #endif
 
-#if (HA_OPENSSL_VERSION_NUMBER >= 0x10101000L) || defined(USE_OPENSSL_AWSLC)
+#if (HA_OPENSSL_VERSION_NUMBER >= 0x10101000L) || defined(USE_OPENSSL_AWSLC) || (defined(USE_OPENSSL_WOLFSSL) && defined(HAVE_SECRET_CALLBACK))
 #define HAVE_SSL_KEYLOG
 #endif