aboutsummaryrefslogtreecommitdiffstats
path: root/databases/mongodb34
diff options
context:
space:
mode:
authorgrembo <grembo@FreeBSD.org>2018-07-08 22:29:28 +0800
committergrembo <grembo@FreeBSD.org>2018-07-08 22:29:28 +0800
commitac8771cf06c41c69a2cb0dee0c31dc928579f696 (patch)
tree6087af11e9b9f9d83c6802343cd7165476bac22a /databases/mongodb34
parent00b33a3e1e28972fdc6f4f0292de5aebdb338e5b (diff)
downloadfreebsd-ports-gnome-ac8771cf06c41c69a2cb0dee0c31dc928579f696.tar.gz
freebsd-ports-gnome-ac8771cf06c41c69a2cb0dee0c31dc928579f696.tar.zst
freebsd-ports-gnome-ac8771cf06c41c69a2cb0dee0c31dc928579f696.zip
Fix build with LibreSSL 2.7
PR: 229606 Approved by: SSL blanket
Diffstat (limited to 'databases/mongodb34')
-rw-r--r--databases/mongodb34/files/patch-src_mongo_crypto_sha1__block__openssl.cpp2
-rw-r--r--databases/mongodb34/files/patch-src_mongo_util_net_ssl__manager.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/databases/mongodb34/files/patch-src_mongo_crypto_sha1__block__openssl.cpp b/databases/mongodb34/files/patch-src_mongo_crypto_sha1__block__openssl.cpp
index 135cd0afd990..59575f685129 100644
--- a/databases/mongodb34/files/patch-src_mongo_crypto_sha1__block__openssl.cpp
+++ b/databases/mongodb34/files/patch-src_mongo_crypto_sha1__block__openssl.cpp
@@ -5,7 +5,7 @@
#include <openssl/hmac.h>
#include <openssl/sha.h>
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
-+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined (LIBRESSL_VERSION_NUMBER)
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || (defined (LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL)
namespace {
// Copies of OpenSSL after 1.1.0 define new EVP digest routines. We must
// polyfill used definitions to interact with older OpenSSL versions.
diff --git a/databases/mongodb34/files/patch-src_mongo_util_net_ssl__manager.cpp b/databases/mongodb34/files/patch-src_mongo_util_net_ssl__manager.cpp
index 05673bd55ae8..08e94d5a1e9d 100644
--- a/databases/mongodb34/files/patch-src_mongo_util_net_ssl__manager.cpp
+++ b/databases/mongodb34/files/patch-src_mongo_util_net_ssl__manager.cpp
@@ -5,7 +5,7 @@
// clang-format on
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
-+#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.