Bugzilla – Bug 129911
perl-Crypt-SSLeay crashes
Last modified: 2006-01-18 11:27:14 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
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.