void-packages/srcpkgs/gsoap/patches/libressl.patch
Đoàn Trần Công Danh 7fc9190f0e srcpkgs/g*: convert patches to -Np1
* gcc is kept at -Np0, because of void-cross

```sh
git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" |
while read template; do
	for p in ${template%/template}/patches/*; do
		sed -i '
			\,^[+-][+-][+-] /dev/null,b
			/^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b
			s,^[*][*][*] ,&a/,
			/^--- /{
				s,\(^--- \)\(./\)*,\1a/,
				s,[.][Oo][Rr][Ii][Gg]\([	/]\),\1,
				s/[.][Oo][Rr][Ii][Gg]$//
				s/[.]patched[.]\([^.]\)/.\1/
				h
			}
			/^+++ -/{
				g
				s/^--- a/+++ b/
				b
			}
			s,\(^+++ \)\(./\)*,\1b/,
		' "$p"
	done
	sed -i '/^patch_args=/d' $template
done
```
2021-06-20 13:17:29 +07:00

14 lines
602 B
Diff

diff --git a/gsoap/stdsoap2.cpp b/gsoap/stdsoap2.cpp
index cd48626..8bbf676 100644
--- a/gsoap/stdsoap2.cpp
+++ b/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))