aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorbrnrd <brnrd@FreeBSD.org>2018-03-27 20:17:06 +0800
committerbrnrd <brnrd@FreeBSD.org>2018-03-27 20:17:06 +0800
commite72b564b80415d270117366d127e20e079e08949 (patch)
treeb94ab18e119a1597d192610e46513adb626dd888 /devel
parentd0ba2df629f8e7b45f140f07be5b8c1d242572a7 (diff)
downloadfreebsd-ports-gnome-e72b564b80415d270117366d127e20e079e08949.tar.gz
freebsd-ports-gnome-e72b564b80415d270117366d127e20e079e08949.tar.zst
freebsd-ports-gnome-e72b564b80415d270117366d127e20e079e08949.zip
devel/libgit2: Fix build with LibreSSL 2.7
- LibreSSL 2.7 adds OpenSSL 1.1 API PR: 226954 Approved by: wg (maintainer)
Diffstat (limited to 'devel')
-rw-r--r--devel/libgit2/files/patch-src_openssl__stream.c11
-rw-r--r--devel/libgit2/files/patch-src_openssl__stream.h11
2 files changed, 22 insertions, 0 deletions
diff --git a/devel/libgit2/files/patch-src_openssl__stream.c b/devel/libgit2/files/patch-src_openssl__stream.c
new file mode 100644
index 000000000000..57bc4a9f52e5
--- /dev/null
+++ b/devel/libgit2/files/patch-src_openssl__stream.c
@@ -0,0 +1,11 @@
+--- src/openssl_stream.c.orig 2017-06-14 11:31:20 UTC
++++ src/openssl_stream.c
+@@ -103,7 +103,7 @@ int git_openssl_stream_global_init(void)
+ ssl_opts |= SSL_OP_NO_COMPRESSION;
+ #endif
+
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20700000L)
+ SSL_load_error_strings();
+ OpenSSL_add_ssl_algorithms();
+ #else
diff --git a/devel/libgit2/files/patch-src_openssl__stream.h b/devel/libgit2/files/patch-src_openssl__stream.h
new file mode 100644
index 000000000000..2de08fa42281
--- /dev/null
+++ b/devel/libgit2/files/patch-src_openssl__stream.h
@@ -0,0 +1,11 @@
+--- src/openssl_stream.h.orig 2017-06-14 11:31:20 UTC
++++ src/openssl_stream.h
+@@ -27,7 +27,7 @@ extern int git_openssl_stream_new(git_st
+
+
+
+-# if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
++# if OPENSSL_VERSION_NUMBER < 0x10100000L || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20700000L)
+
+ GIT_INLINE(BIO_METHOD*) BIO_meth_new(int type, const char *name)
+ {