From 063b9afddb9d91aa546e52cced7c3fdc3a78f8bb Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Wed, 12 Apr 2017 15:06:19 +0200 Subject: [PATCH] lynx: fix build with libressl-2.5 (via FreeBSD) --- .../patches/patch-WWW_Library_Implementation_HTTP.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 srcpkgs/lynx/patches/patch-WWW_Library_Implementation_HTTP.c diff --git a/srcpkgs/lynx/patches/patch-WWW_Library_Implementation_HTTP.c b/srcpkgs/lynx/patches/patch-WWW_Library_Implementation_HTTP.c new file mode 100644 index 0000000000..477bc8a43f --- /dev/null +++ b/srcpkgs/lynx/patches/patch-WWW_Library_Implementation_HTTP.c @@ -0,0 +1,11 @@ +--- WWW/Library/Implementation/HTTP.c.orig 2017-02-09 21:20:27 UTC ++++ WWW/Library/Implementation/HTTP.c +@@ -721,7 +722,7 @@ static int HTLoadHTTP(const char *arg, + #elif SSLEAY_VERSION_NUMBER >= 0x0900 + #ifndef USE_NSS_COMPAT_INCL + if (!try_tls) { +- handle->options |= SSL_OP_NO_TLSv1; ++ SSL_set_options(handle, SSL_OP_NO_TLSv1); + #if OPENSSL_VERSION_NUMBER >= 0x0090806fL && !defined(OPENSSL_NO_TLSEXT) + } else { + int ret = (int) SSL_set_tlsext_host_name(handle, ssl_host);