Bug 1097710

Summary: IO::Socket:SSL::Utils::KEY_free() dies with: Can't locate auto/Net/SSLeay/EVP_KEY_fre.al
Product: Red Hat Enterprise Linux 7 Reporter: Petr Pisar <ppisar>
Component: perl-IO-Socket-SSLAssignee: Jitka Plesnikova <jplesnik>
Status: CLOSED ERRATA QA Contact: Karel Srot <ksrot>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: jplesnik, ovasik
Target Milestone: rcKeywords: Patch
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: perl-IO-Socket-SSL-1.94-4.el7 Doc Type: Bug Fix
Doc Text:
Cause: Use function KEY_free Consequence: Failed due to typo in the function Fix: Fix the typo. Replace Net::SSLeay::EVP_KEY_free by Net::SSLeay::EVP_PKEY_free Result: Using of KEY_free does not failed
Story Points: ---
Clone Of: 1097640 Environment:
Last Closed: 2016-11-04 00:21:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1289025, 1305230    
Attachments:
Description Flags
Fix none

Description Petr Pisar 2014-05-14 11:52:09 UTC
+++ This bug was initially created as a clone of Bug #1097640 +++

$ 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.

$ rpm -q perl-IO-Socket-SSL perl-Net-SSLeay
perl-IO-Socket-SSL-1.984-1.fc21.noarch
perl-Net-SSLeay-1.61-1.fc21.x86_64

This is probably a bug in perl-Net-SSLeay.

The same issue is in Fedora 20.

--- Additional comment from Paul Howarth on 2014-05-14 09:36:22 GMT ---

I think it's a typo in Utils.pm

Can you give the attached patch a try? It works for the test case in this ticket but I'm sure you'll have a better one...

--- Additional comment from Petr Pisar on 2014-05-14 09:52:32 GMT ---

Yes. This works even in bigger picture. Thank you.

---

RHEL-7 (perl-IO-Socket-SSL-1.94-3.el7.noarch) is affected too.

Comment 1 Petr Pisar 2014-05-14 11:53:45 UTC
Created attachment 895465 [details]
Fix

Comment 4 Jitka Plesnikova 2016-03-04 15:09:03 UTC
How to test:

1) install perl and perl-IO-Socket-SSL

2) Run command
perl -MIO::Socket::SSL::Utils -e 'KEY_free(KEY_create_rsa())'

3) The output should be empty

Comment 8 errata-xmlrpc 2016-11-04 00:21:59 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-2201.html