aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php7-mongodb/libressl-273.patch
diff options
context:
space:
mode:
authorAndy Postnikov <apostnikov@gmail.com>2018-05-08 01:45:41 +0300
committerAndy Postnikov <apostnikov@gmail.com>2018-05-19 15:31:58 +0300
commit1d915b125a7a3e5e184ba9a33a1ca3ad8e46d5f2 (patch)
treeab23adb62d2eecc2909bb67dfb13eb1616b0c99e /testing/php7-mongodb/libressl-273.patch
parent61c9505c9bd222313ede8179a8b733e7ae5b1ce7 (diff)
downloadaports-1d915b125a7a3e5e184ba9a33a1ca3ad8e46d5f2.tar.bz2
aports-1d915b125a7a3e5e184ba9a33a1ca3ad8e46d5f2.tar.xz
testing/php7-mongodb: upgrade to 1.4.3
Diffstat (limited to 'testing/php7-mongodb/libressl-273.patch')
-rw-r--r--testing/php7-mongodb/libressl-273.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/testing/php7-mongodb/libressl-273.patch b/testing/php7-mongodb/libressl-273.patch
new file mode 100644
index 0000000000..2689f5aea7
--- /dev/null
+++ b/testing/php7-mongodb/libressl-273.patch
@@ -0,0 +1,26 @@
+diff --git a/src/libmongoc/src/mongoc/mongoc-stream-tls-openssl-bio.c b/src/libmongoc/src/mongoc/mongoc-stream-tls-openssl-bio.c
+index 053439b..3306236 100644
+--- a/src/libmongoc/src/mongoc/mongoc-stream-tls-openssl-bio.c
++++ b/src/libmongoc/src/mongoc/mongoc-stream-tls-openssl-bio.c
+@@ -39,7 +39,7 @@
+ #define MONGOC_LOG_DOMAIN "stream-tls-openssl-bio"
+
+
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL)
+
+ /* Magic vtable to make our BIO shim */
+ static BIO_METHOD gMongocStreamTlsOpenSslRawMethods = {
+diff --git a/src/libmongoc/src/mongoc/mongoc-stream-tls-openssl.c b/src/libmongoc/src/mongoc/mongoc-stream-tls-openssl.c
+index fd1800b..0ccc4a1 100644
+--- a/src/libmongoc/src/mongoc/mongoc-stream-tls-openssl.c
++++ b/src/libmongoc/src/mongoc/mongoc-stream-tls-openssl.c
+@@ -45,7 +45,7 @@
+
+ #define MONGOC_STREAM_TLS_OPENSSL_BUFFER_SIZE 4096
+
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL)
+ static void
+ BIO_meth_free (BIO_METHOD *meth)
+ {