summaryrefslogtreecommitdiff
path: root/src/streams/openssl.h
diff options
context:
space:
mode:
authorBernard Spil <brnrd@FreeBSD.org>2018-04-02 20:00:07 +0200
committerBernard Spil <brnrd@FreeBSD.org>2018-04-02 20:00:07 +0200
commit7490d449b518115a1ae86b01397e95c38e39cff1 (patch)
treef393349b403b62132c84e1b98bcb6b5042cf6852 /src/streams/openssl.h
parentdc27772ce2b3d9e34c5e97fb0eb010e21c96ee33 (diff)
downloadlibgit2-7490d449b518115a1ae86b01397e95c38e39cff1.tar.gz
Fix build with LibreSSL 2.7
LibreSSL 2.7 adds OpenSSL 1.1 API Signed-off-by: Bernard Spil <brnrd@FreeBSD.org>
Diffstat (limited to 'src/streams/openssl.h')
-rw-r--r--src/streams/openssl.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/streams/openssl.h b/src/streams/openssl.h
index 2bbad7c68..44329ec90 100644
--- a/src/streams/openssl.h
+++ b/src/streams/openssl.h
@@ -31,7 +31,8 @@ extern int git_openssl__set_cert_location(const char *file, const char *path);
-# 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)
{