From d0c363486cb2a9b0d4374fc236ff55f842a2a5e7 Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Mon, 15 May 2023 14:42:28 +0200 Subject: [PATCH] BUILD: ssl: get0_verified chain is available on libreSSL Define HAVE_SSL_get0_verified_chain when it's using libreSSL >= 3.3.6. --- include/haproxy/openssl-compat.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/haproxy/openssl-compat.h b/include/haproxy/openssl-compat.h index 6a8a62a03..7fb153810 100644 --- a/include/haproxy/openssl-compat.h +++ b/include/haproxy/openssl-compat.h @@ -90,6 +90,10 @@ #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