From 07b87af3178fa4d2bd3fb5e1096aac5e655f8b10 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Nov 03 2016 06:15:49 +0000 Subject: import perl-Net-SSLeay-1.55-4.el7 --- diff --git a/SOURCES/Net-SSLeay-1.55-Add-support-for-the-basic-operations-necessary-to-su.patch b/SOURCES/Net-SSLeay-1.55-Add-support-for-the-basic-operations-necessary-to-su.patch new file mode 100644 index 0000000..adc2bbd --- /dev/null +++ b/SOURCES/Net-SSLeay-1.55-Add-support-for-the-basic-operations-necessary-to-su.patch @@ -0,0 +1,72 @@ +This patch adds EC_KEY_new_by_curve_name(), EC_KEY_free*() and +SSL_CTX_set_tmp_ecdh(). + +This is ported from Net-SSLeay-1.56 to version 1.55. + +diff -up Net-SSLeay-1.55/SSLeay.xs.orig Net-SSLeay-1.55/SSLeay.xs +--- Net-SSLeay-1.55/SSLeay.xs.orig 2016-03-10 10:42:52.267612772 +0100 ++++ Net-SSLeay-1.55/SSLeay.xs 2016-03-10 09:56:18.846933771 +0100 +@@ -4127,6 +4127,23 @@ SSL_CTX_set_tmp_rsa(ctx,rsa) + SSL_CTX * ctx + RSA * rsa + ++#if OPENSSL_VERSION_NUMBER > 0x10000000L ++ ++EC_KEY * ++EC_KEY_new_by_curve_name(nid) ++ int nid ++ ++void ++EC_KEY_free(key) ++ EC_KEY * key ++ ++long ++SSL_CTX_set_tmp_ecdh(ctx,ecdh); ++ SSL_CTX * ctx ++ EC_KEY * ecdh ++ ++#endif ++ + void * + SSL_get_app_data(s) + SSL * s +diff -up Net-SSLeay-1.55/typemap.orig Net-SSLeay-1.55/typemap +--- Net-SSLeay-1.55/typemap.orig 2016-03-10 10:40:49.886151370 +0100 ++++ Net-SSLeay-1.55/typemap 2016-03-10 10:41:37.640941202 +0100 +@@ -6,6 +6,7 @@ SSL_SESSION * T_PTR + SSL * T_PTR + RSA * T_PTR + DH * T_PTR ++EC_KEY * T_PTR + const X509 * T_PTR + const X509_CRL * T_PTR + const X509_REQ * T_PTR +diff -up Net-SSLeay-1.55/lib/Net/SSLeay.pod.orig Net-SSLeay-1.55/lib/Net/SSLeay.pod +--- Net-SSLeay-1.55/lib/Net/SSLeay.pod.orig 2016-03-10 12:23:38.706870006 +0100 ++++ Net-SSLeay-1.55/lib/Net/SSLeay.pod 2016-03-10 12:28:04.280365357 +0100 +@@ -7500,6 +7500,25 @@ Enable or disable FIPS mode in a FIPS ca + + =back + ++=head3 Low level API: EC related functions ++ ++=over ++ ++=item * CTX_set_tmp_ecdh ++ ++TBA ++ ++=item * EC_KEY_free ++ ++TBA ++ ++=item * EC_KEY_new_by_curve_name ++ ++TBA ++ ++=back ++ ++ + =head2 Constants + + There are many openssl constants available in L. You can use them like this: diff --git a/SPECS/perl-Net-SSLeay.spec b/SPECS/perl-Net-SSLeay.spec index 403e73c..2962e48 100644 --- a/SPECS/perl-Net-SSLeay.spec +++ b/SPECS/perl-Net-SSLeay.spec @@ -1,11 +1,13 @@ Name: perl-Net-SSLeay Version: 1.55 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Perl extension for using OpenSSL Group: Development/Libraries License: OpenSSL URL: http://search.cpan.org/dist/Net-SSLeay/ Source0: http://search.cpan.org/CPAN/authors/id/M/MI/MIKEM/Net-SSLeay-%{version}.tar.gz +# Add ECDHE support, in upstream 1.56, bug #1316379 +Patch0: Net-SSLeay-1.55-Add-support-for-the-basic-operations-necessary-to-su.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu) BuildRequires: openssl, openssl-devel # =========== Module Build =========================== @@ -51,6 +53,7 @@ so you can write servers or clients for more complicated applications. %prep %setup -q -n Net-SSLeay-%{version} +%patch0 -p1 # Fix permissions in examples to avoid bogus doc-file dependencies chmod -c 644 examples/* @@ -92,6 +95,9 @@ rm -rf %{buildroot} %{_mandir}/man3/Net::SSLeay::Handle.3pm* %changelog +* Thu Mar 10 2016 Jitka Plesnikova - 1.55-4 +- Add ECDHE support (bug #1316379) + * Fri Jan 24 2014 Daniel Mach - 1.55-3 - Mass rebuild 2014-01-24