From: Emmanuel Hocdet Date: Mon, 20 Mar 2017 10:39:57 +0000 (+0100) Subject: BUILD: ssl: fix OPENSSL_NO_SSL_TRACE for boringssl and libressl X-Git-Tag: v1.8-dev1~67 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9490cedb4eee0d3c72d4cb6eb57520beabaabe83;p=thirdparty%2Fhaproxy.git BUILD: ssl: fix OPENSSL_NO_SSL_TRACE for boringssl and libressl "sample-fetch which captures the cipherlist" patch introduce #define do deal with trace functions only available in openssl > 1.0.2. Add this #define to libressl and boringssl environment. Thanks to Piotr Kubaj for postponing and testing with libressl. --- diff --git a/include/proto/openssl-compat.h b/include/proto/openssl-compat.h index c56619951f..7261a7b7f9 100644 --- a/include/proto/openssl-compat.h +++ b/include/proto/openssl-compat.h @@ -152,6 +152,11 @@ static inline X509_ALGOR *X509_get0_tbs_sigalg(const X509 *x) #define __OPENSSL_110_CONST__ #endif +#if defined(OPENSSL_IS_BORINGSSL) || defined(LIBRESSL_VERSION_NUMBER) +#undef OPENSSL_NO_SSL_TRACE +#define OPENSSL_NO_SSL_TRACE +#endif + #ifdef OPENSSL_IS_BORINGSSL #define SSL_NO_GENERATE_CERTIFICATES