From 41c31d8e2ca288eec32c22ae0d5757231080783f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com> Date: Wed, 12 Oct 2016 10:57:42 +0200 Subject: Adapt to OpenSSL 1.1.0
--- ...se-SSLv2_client_method-with-OpenSSL-1.1.0.patch | 33 ++++++++++++++++++++++ perl-Crypt-SSLeay.spec | 8 +++++- 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 Crypt-SSLeay-0.72-Do-not-use-SSLv2_client_method-with-OpenSSL-1.1.0.patch diff --git a/Crypt-SSLeay-0.72-Do-not-use-SSLv2_client_method-with-OpenSSL-1.1.0.patch b/Crypt-SSLeay-0.72-Do-not-use-SSLv2_client_method-with-OpenSSL-1.1.0.patch new file mode 100644 index 0000000..93dcb49 --- /dev/null +++ b/Crypt-SSLeay-0.72-Do-not-use-SSLv2_client_method-with-OpenSSL-1.1.0.patch @@ -0,0 +1,33 @@ +From 1c725e333e9d20b87346fb394a1d01fa5be4fbaf Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com> +Date: Wed, 12 Oct 2016 10:46:22 +0200 +Subject: [PATCH] Do not use SSLv2_client_method() with OpenSSL >= 1.1.0 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +SSLv2 support was removed from OpenSSL 1.1.0. + +CPAN RT#118343 + +Signed-off-by: Petr Písař <ppi...@redhat.com> +--- + SSLeay.xs | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/SSLeay.xs b/SSLeay.xs +index 1560604..ba0dd24 100644 +--- a/SSLeay.xs ++++ b/SSLeay.xs +@@ -152,7 +152,7 @@ SSL_CTX_new(packname, ssl_version) + ctx = SSL_CTX_new(SSLv3_client_method()); + } + else { +-#ifndef OPENSSL_NO_SSL2 ++#if !defined OPENSSL_NO_SSL2 && OPENSSL_VERSION_NUMBER < 0x10100000L + /* v2 is the default */ + ctx = SSL_CTX_new(SSLv2_client_method()); + #else +-- +2.7.4 + diff --git a/perl-Crypt-SSLeay.spec b/perl-Crypt-SSLeay.spec index 454dd68..ceab18c 100644 --- a/perl-Crypt-SSLeay.spec +++ b/perl-Crypt-SSLeay.spec @@ -4,10 +4,12 @@ Name: perl-Crypt-SSLeay Summary: OpenSSL glue that provides LWP with HTTPS support Version: 0.72 -Release: 9%{?dist} +Release: 10%{?dist} License: Artistic 2.0 Group: Development/Libraries Source0: http://www.cpan.org/authors/id/N/NA/NANIS/Crypt-SSLeay-%{version}.tar.gz +# Adapt to OpenSSL 1.1.0, bug #1383756, CPAN RT#118343 +Patch0: Crypt-SSLeay-0.72-Do-not-use-SSLv2_client_method-with-OpenSSL-1.1.0.patch URL: http://search.cpan.org/dist/Crypt-SSLeay/ BuildRequires: openssl-devel BuildRequires: perl @@ -66,6 +68,7 @@ for that module to work. %prep %setup -q -n Crypt-SSLeay-%{version} +%patch0 -p1 # Placate rpmlint chmod -c -x lib/Net/SSL.pm @@ -105,6 +108,9 @@ make test %{_mandir}/man3/Net::SSL.3pm* %changelog +* Wed Oct 12 2016 Petr Pisar <ppi...@redhat.com> - 0.72-10 +- Adapt to OpenSSL 1.1.0 (bug #1383756) + * Sun May 15 2016 Jitka Plesnikova <jples...@redhat.com> - 0.72-9 - Perl 5.24 rebuild -- cgit v0.12 http://pkgs.fedoraproject.org/cgit/perl-Crypt-SSLeay.git/commit/?h=master&id=41c31d8e2ca288eec32c22ae0d5757231080783f _______________________________________________ perl-devel mailing list -- perl-devel@lists.fedoraproject.org To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org