]> granicus.if.org Git - php/commitdiff
fix bug #35381 - ensure library is initialized before use
authorAlan Knowles <alan_k@php.net>
Mon, 28 Nov 2005 10:28:17 +0000 (10:28 +0000)
committerAlan Knowles <alan_k@php.net>
Mon, 28 Nov 2005 10:28:17 +0000 (10:28 +0000)
ext/openssl/openssl.c

index d25ed7f5ee2cc97567fd2a74a49b822d25ff428f..2d13072082bd4bb1bf47d483e4d2584c1443a0e9 100644 (file)
@@ -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();