#38798 [Asn->Csd]: OpenSSL init corrected in php5 but not in php4

From: Date: Tue, 08 May 2007 18:00:39 +0000
Subject: #38798 [Asn->Csd]: OpenSSL init corrected in php5 but not in php4
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-112413@lists.php.net to get a copy of this message
ID: 38798 Updated by: tony2001@php.net Reported By: fidojones at fidojones dot com -Status: Assigned +Status: Closed Bug Type: OpenSSL related Operating System: linux PHP Version: 4.4.4 Assigned To: derick New Comment: This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2007-01-15 12:40:49] pajoye@php.net It is up to the 4.4 RM to decide. ------------------------------------------------------------------------ [2006-09-12 20:15:47] fidojones at fidojones dot com Description: ------------ This bug is corrected in php5, but it's not introduced in php4 an fails exactly as php5. In php 4.4.4 it's not yet. SSL_library_init(); Description: ------------ Patch to fix Index: ext/openssl/openssl.c =================================================================== RCS file: /repository/php-src/ext/openssl/openssl.c,v retrieving revision 1.98.2.1 diff -p -u -r1.98.2.1 openssl.c --- ext/openssl/openssl.c 18 Aug 2005 13:34:37 -0000 1.98.2.1 +++ ext/openssl/openssl.c 25 Nov 2005 03:03:47 -0000 @@ -584,6 +584,7 @@ PHP_MINIT_FUNCTION(openssl) le_x509 = zend_register_list_destructors_ex(php_x509_free, NULL, "OpenSSL X.509", module_number); le_csr = zend_register_list_destructors_ex(php_csr_free, NULL, "OpenSSL X.509 CSR", module_number); + SSL_library_init(); OpenSSL_add_all_ciphers(); OpenSSL_add_all_digests(); OpenSSL_add_all_algorithms(); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=38798&edit=1

« previous php.bugs (#112413) next »