Bug 129911 - perl-Crypt-SSLeay crashes
Summary: perl-Crypt-SSLeay crashes
Status: RESOLVED FIXED
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: Other (show other bugs)
Version: Alpha 2
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Peter Poeml
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-20 23:21 UTC by Andreas Schwab
Modified: 2006-01-18 11:27 UTC (History)
1 user (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Schwab 2005-10-20 23:21:31 UTC
The Crypt::SSLeay module crashes in Crypt::SSLeay::CTX::new because 
SSL_CTX_new returns NULL.  (That it crashes is another bug that is not the 
point here.)  The reason why SSL_CTX_new returns NULL appears to be that it is 
no longer enough to call SSLeay_add_all_algorithms to initialize the SSL 
library.  When I change that to call SSLeay_add_ssl_algorithms instead 
everything works again.  That appears to be a silent API change in the SSL 
library.  
   
$ cat ssleay.pl  
use Crypt::SSLeay;  
Crypt::SSLeay::CTX::new('main', 23);  
$ perl ssleay.pl  
Segmentation fault
Comment 1 Michael Calmer 2006-01-18 11:27:14 UTC
I found in ruby source code the following statement

    OpenSSL_add_ssl_algorithms();
    OpenSSL_add_all_algorithms();

This also works with perl-Crypt-SSLeay. Maybe this would be a better fix. 
I have nothing found if there is an API change. 

Well => fixed.