diff options
author | Marc Vertes <mvertes@free.fr> | 2017-08-12 12:54:20 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-08-12 14:37:50 +0000 |
commit | 77dadebd0c37aff8273fa1976d6deddafe8556ae (patch) | |
tree | 88fc7843c77feaf4aaffff705188ea421a82fabb /community/mongodb/fix-libressl.patch | |
parent | 27c40f945c3a39ad86c731985d88d59526c51939 (diff) | |
download | aports-77dadebd0c37aff8273fa1976d6deddafe8556ae.tar.bz2 aports-77dadebd0c37aff8273fa1976d6deddafe8556ae.tar.xz |
community/mongodb: upgrade to 3.4.7
Diffstat (limited to 'community/mongodb/fix-libressl.patch')
-rw-r--r-- | community/mongodb/fix-libressl.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/community/mongodb/fix-libressl.patch b/community/mongodb/fix-libressl.patch new file mode 100644 index 0000000000..1113589655 --- /dev/null +++ b/community/mongodb/fix-libressl.patch @@ -0,0 +1,22 @@ +--- mongodb-src-r3.4.7/src/mongo/crypto/sha1_block_openssl.cpp.orig ++++ mongodb-src-r3.4.7/src/mongo/crypto/sha1_block_openssl.cpp +@@ -42,7 +42,7 @@ + #include <openssl/evp.h> + #include <openssl/hmac.h> + #include <openssl/sha.h> +-#if OPENSSL_VERSION_NUMBER < 0x10100000L ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) + namespace { + // Copies of OpenSSL after 1.1.0 define new EVP digest routines. We must + // polyfill used definitions to interact with older OpenSSL versions. +--- mongodb-src-r3.4.7/src/mongo/util/net/ssl_manager.cpp.orig ++++ mongodb-src-r3.4.7/src/mongo/util/net/ssl_manager.cpp +@@ -150,7 +150,7 @@ + #endif // MONGO_CONFIG_NEEDS_ASN1_ANY_DEFINITIONS + // clang-format on + +-#if OPENSSL_VERSION_NUMBER < 0x10100000L ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) + // 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. |