Commit 40139fe6e62e487e6ccae26df6f9b1ddc9b30b36

Patrick Steinhardt 2017-06-07T07:38:06

Merge pull request #4251 from Keruspe/master Fix build with libressl

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/openssl_stream.c b/src/openssl_stream.c
index 841dcce..759c501 100644
--- a/src/openssl_stream.c
+++ b/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
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
 	SSL_load_error_strings();
 	OpenSSL_add_ssl_algorithms();
 #else