]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: ssl: get0_verified chain is available on libreSSL
authorWilliam Lallemand <wlallemand@haproxy.org>
Mon, 15 May 2023 12:42:28 +0000 (14:42 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Mon, 15 May 2023 13:16:15 +0000 (15:16 +0200)
Define HAVE_SSL_get0_verified_chain when it's using libreSSL >= 3.3.6.

include/haproxy/openssl-compat.h

index 6a8a62a034c7243bc8bbaa96160f676fab19ccc5..7fb15381090af340df50a2e8c8e5dcf6d26cd71a 100644 (file)
 
 #if (HA_OPENSSL_VERSION_NUMBER >= 0x10101000L)
 #define HAVE_SSL_KEYLOG
+#endif
+
+/* minimum OpenSSL 1.1.1 & libreSSL 3.3.6 */
+#if (defined(LIBRESSL_VERSION_NUMBER) && (LIBRESSL_VERSION_NUMBER >= 0x3030600L)) || (HA_OPENSSL_VERSION_NUMBER >= 0x10101000L)
 #define HAVE_SSL_get0_verified_chain
 #endif