void-packages/srcpkgs/gsoap/patches/libressl.patch

15 lines
593 B
Diff
Raw Normal View History

2018-12-04 08:11:52 +00:00
diff --git a/gsoap/stdsoap2.cpp b/gsoap/stdsoap2.cpp
2019-01-14 20:34:07 +00:00
index cd48626..8bbf676 100644
2018-12-04 08:11:52 +00:00
--- gsoap/stdsoap2.cpp
+++ gsoap/stdsoap2.cpp
2019-01-14 20:34:07 +00:00
@@ -4396,7 +4396,7 @@ ssl_auth_init(struct soap *soap)
2018-12-04 08:11:52 +00:00
/* enable all TSLv1 protocols and disable SSLv3 by default if no SSL/TLS flags are set */
if (!(soap->ssl_flags & SOAP_SSLv3_TLSv1))
soap->ssl_flags = SOAP_TLSv1;
2019-01-14 20:34:07 +00:00
-#if OPENSSL_VERSION_NUMBER >= 0x10101000L
+#if OPENSSL_VERSION_NUMBER >= 0x10101000L && !defined(LIBRESSL_VERSION_NUMBER)
2018-12-04 08:11:52 +00:00
if ((soap->ssl_flags & SOAP_SSLv3))
minv = SSL3_VERSION;
else if ((soap->ssl_flags & SOAP_TLSv1_0))