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

15 lines
598 B
Diff

diff --git a/gsoap/stdsoap2.cpp b/gsoap/stdsoap2.cpp
index cd48626..8bbf676 100644
--- gsoap/stdsoap2.cpp
+++ gsoap/stdsoap2.cpp
@@ -4453,7 +4453,7 @@ ssl_auth_init(struct soap *soap)
/* enable all TSLv1 protocols and disable SSLv3 by default if no SSL/TLS flags are set */
if ((soap->ssl_flags & SOAP_SSLv3_TLSv1) == 0)
soap->ssl_flags |= SOAP_TLSv1;
-#if OPENSSL_VERSION_NUMBER >= 0x10101000L
+#if OPENSSL_VERSION_NUMBER >= 0x10101000L && !defined(LIBRESSL_VERSION_NUMBER)
if ((soap->ssl_flags & SOAP_SSLv3))
minv = SSL3_VERSION;
else if ((soap->ssl_flags & SOAP_TLSv1_0))