diff options
author | Michael Gmelin <mg@grem.de> | 2018-07-13 11:17:32 -0400 |
---|---|---|
committer | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2018-07-13 11:17:32 -0400 |
commit | a1fad21d12d53d755634740e6b6fe1bc970494c8 (patch) | |
tree | c89c54f0c9cbaea0667089bd948a3f5a0637eb49 /src/mongo/util/net/ssl_manager_openssl.cpp | |
parent | ae0a1e3b0a0a1e6011f2112a1452c6120539c2d8 (diff) | |
download | mongo-a1fad21d12d53d755634740e6b6fe1bc970494c8.tar.gz |
Fix build for LibreSSL 2.7 (adopted parts of OpenSSL 1.1 API).
Closes #1252
Signed-off-by: Mark Benvenuto <mark.benvenuto@mongodb.com>
Diffstat (limited to 'src/mongo/util/net/ssl_manager_openssl.cpp')
-rw-r--r-- | src/mongo/util/net/ssl_manager_openssl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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. |