diff --git a/lynx-2.8.9-openssl.patch b/lynx-2.8.9-openssl.patch new file mode 100644 index 0000000..9ca461a --- /dev/null +++ b/lynx-2.8.9-openssl.patch @@ -0,0 +1,25 @@ +From 778a766d5a4fc891412edfc856e439770f54bc5b Mon Sep 17 00:00:00 2001 +From: Kamil Dudka +Date: Thu, 20 Oct 2016 15:46:53 +0200 +Subject: [PATCH] lynx: fix compatibility with OpenSSL 1.1 + +--- + WWW/Library/Implementation/HTTP.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/WWW/Library/Implementation/HTTP.c b/WWW/Library/Implementation/HTTP.c +index 925512d..0909013 100644 +--- a/WWW/Library/Implementation/HTTP.c ++++ b/WWW/Library/Implementation/HTTP.c +@@ -802,7 +802,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); + CTRACE((tfp, "...adding SSL_OP_NO_TLSv1\n")); + } + #if OPENSSL_VERSION_NUMBER >= 0x0090806fL && !defined(OPENSSL_NO_TLSEXT) +-- +2.7.4 + diff --git a/lynx.spec b/lynx.spec index 0435d89..aa72f36 100644 --- a/lynx.spec +++ b/lynx.spec @@ -3,7 +3,7 @@ Summary: A text-based Web browser Name: lynx Version: 2.8.9 -Release: 0.12.dev%{devrel}%{?dist} +Release: 0.13.dev%{devrel}%{?dist} License: GPLv2 Group: Applications/Internet Source: http://invisible-mirror.net/archives/lynx/tarballs/lynx%{version}dev.%{devrel}.tar.bz2 @@ -24,6 +24,9 @@ Patch2: lynx-CVE-2008-4690.patch # avoid build failure caused by mistakenly excluded Patch3: lynx-2.8.8-locale.patch +# fix compatibility with OpenSSL 1.1 +Patch4: lynx-2.8.9-openssl.patch + Provides: webclient Provides: text-www-browser BuildRequires: gettext @@ -55,6 +58,7 @@ exits quickly and swiftly displays web pages. %patch1 -p1 %patch2 -p1 %patch3 -p1 +%patch4 -p1 %{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}} perl -pi -e "s,^HELPFILE:.*,HELPFILE:file://localhost%{_pkgdocdir}/lynx_help/lynx_help_main.html,g" lynx.cfg @@ -128,6 +132,9 @@ EOF %config(noreplace,missingok) %{_sysconfdir}/lynx-site.cfg %changelog +* Thu Oct 20 2016 Kamil Dudka - 2.8.9-0.13.dev9 +- fix compatibility with OpenSSL 1.1 + * Wed Oct 12 2016 Kamil Dudka - 2.8.9-0.12.dev9 - update to the latest upstream pre-release