cvs: php-src /ext/openssl openssl.c
| From: | Alan Knowles | Date: | Mon, 28 Nov 2005 10:28:18 +0000 |
| Subject: | cvs: php-src /ext/openssl openssl.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-35445@lists.php.net to get a copy of this message | ||
alan_k Mon Nov 28 05:28:18 2005 EDT
Modified files:
/php-src/ext/openssl openssl.c
Log:
fix bug #35381 - ensure library is initialized before use
http://cvs.php.net/diff.php/php-src/ext/openssl/openssl.c?r1=1.99&r2=1.100&ty=u
Index: php-src/ext/openssl/openssl.c
diff -u php-src/ext/openssl/openssl.c:1.99 php-src/ext/openssl/openssl.c:1.100
--- php-src/ext/openssl/openssl.c:1.99 Thu Aug 18 09:33:58 2005
+++ php-src/ext/openssl/openssl.c Mon Nov 28 05:28:16 2005
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: openssl.c,v 1.99 2005/08/18 13:33:58 sniper Exp $ */
+/* $Id: openssl.c,v 1.100 2005/11/28 10:28:16 alan_k Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -584,6 +584,7 @@
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();