commit 91de4e03c6e345bb1649da90a23f78c0d8f62ecc
Author: Paul Howarth <p...@city-fan.org>
Date:   Wed May 14 11:56:53 2014 +0100

    Fix typo in Utils.pm (#1097640, CPAN RT#95633)
    
    $ perl -MIO::Socket::SSL::Utils -e 'KEY_free(KEY_create_rsa())'
    Can't locate auto/Net/SSLeay/EVP_KEY_fre.al in @INC (@INC contains:
    /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl
    /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at
    /usr/share/perl5/vendor_perl/IO/Socket/SSL/Utils.pm line 96.
    
    Net::SSLeay::EVP_KEY_free should be Net::SSLeay::EVP_PKEY_free.

 IO-Socket-SSL-1.984-key-free.patch |   11 +++++++++++
 perl-IO-Socket-SSL.spec            |    9 ++++++++-
 2 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/IO-Socket-SSL-1.984-key-free.patch 
b/IO-Socket-SSL-1.984-key-free.patch
new file mode 100644
index 0000000..b0e90c6
--- /dev/null
+++ b/IO-Socket-SSL-1.984-key-free.patch
@@ -0,0 +1,11 @@
+--- lib/IO/Socket/SSL/Utils.pm
++++ lib/IO/Socket/SSL/Utils.pm
+@@ -93,7 +93,7 @@ sub CERT_free {
+ 
+ sub KEY_free {
+     my $key = shift or return;
+-    Net::SSLeay::EVP_KEY_free($key);
++    Net::SSLeay::EVP_PKEY_free($key);
+ }
+ 
+ sub KEY_create_rsa {
diff --git a/perl-IO-Socket-SSL.spec b/perl-IO-Socket-SSL.spec
index 4b007c1..3c6c2ff 100644
--- a/perl-IO-Socket-SSL.spec
+++ b/perl-IO-Socket-SSL.spec
@@ -1,11 +1,12 @@
 Name:          perl-IO-Socket-SSL
 Version:       1.984
-Release:       1%{?dist}
+Release:       2%{?dist}
 Summary:       Perl library for transparent SSL
 Group:         Development/Libraries
 License:       GPL+ or Artistic
 URL:           http://search.cpan.org/dist/IO-Socket-SSL/
 Source0:       
http://search.cpan.org/CPAN/authors/id/S/SU/SULLR/IO-Socket-SSL-%{version}.tar.gz
+Patch0:                IO-Socket-SSL-1.984-key-free.patch
 BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
 BuildArch:     noarch
 BuildRequires: openssl >= 0.9.8
@@ -58,6 +59,9 @@ mod_perl.
 %prep
 %setup -q -n IO-Socket-SSL-%{version}
 
+# Fix typo in Utils.pm (#1097640, CPAN RT#95633)
+%patch0
+
 %build
 echo n | perl Makefile.PL INSTALLDIRS=vendor
 make %{?_smp_mflags}
@@ -83,6 +87,9 @@ rm -rf %{buildroot}
 %{_mandir}/man3/IO::Socket::SSL::Utils.3*
 
 %changelog
+* Wed May 14 2014 Paul Howarth <p...@city-fan.org> - 1.984-2
+- Fix typo in Utils.pm (#1097640, CPAN RT#95633)
+
 * Sat May 10 2014 Paul Howarth <p...@city-fan.org> - 1.984-1
 - Update to 1.984
   - Added OCSP support:
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/perl-devel

Reply via email to