opnsense-ports/devel/libgit2/files/patch-src_streams_openssl.c
Franco Fichtner 43e346094a */*: sync with upstream
Taken from: HardenedBSD
2018-05-14 16:46:17 +02:00

11 lines
455 B
C

--- src/streams/openssl.c.orig 2018-04-23 07:00:42 UTC
+++ src/streams/openssl.c
@@ -104,7 +104,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