From a1fad21d12d53d755634740e6b6fe1bc970494c8 Mon Sep 17 00:00:00 2001 From: Michael Gmelin Date: Fri, 13 Jul 2018 11:17:32 -0400 Subject: Fix build for LibreSSL 2.7 (adopted parts of OpenSSL 1.1 API). Closes #1252 Signed-off-by: Mark Benvenuto --- src/mongo/util/net/ssl_manager_openssl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mongo/util/net/ssl_manager_openssl.cpp') diff --git a/src/mongo/util/net/ssl_manager_openssl.cpp b/src/mongo/util/net/ssl_manager_openssl.cpp index 1f61cfbac49..9247cdad32d 100644 --- a/src/mongo/util/net/ssl_manager_openssl.cpp +++ b/src/mongo/util/net/ssl_manager_openssl.cpp @@ -169,7 +169,8 @@ IMPLEMENT_ASN1_ENCODE_FUNCTIONS_const_fname(ASN1_SEQUENCE_ANY, ASN1_SET_ANY, ASN #endif // MONGO_CONFIG_NEEDS_ASN1_ANY_DEFINITIONS // clang-format on -#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) +#if OPENSSL_VERSION_NUMBER < 0x10100000L || \ + (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL) // Copies of OpenSSL after 1.1.0 define new functions for interaction with // X509 structure. We must polyfill used definitions to interact with older // OpenSSL versions. -- cgit v1.2.1