Blame SOURCES/php-5.4.16-openssl-config.patch
|
|
b74969 |
Adapted for 5.4.16 from
|
|
|
b74969 |
https://github.com/php/php-src/commit/1f843a8fb50de77a3f53a6b892a46d9e0afdfdd7
|
|
|
b74969 |
|
|
|
b74969 |
See https://bugzilla.redhat.com/1408301
|
|
|
b74969 |
|
|
|
b74969 |
|
|
|
b74969 |
diff -up ./ext/openssl/openssl.c.old ./ext/openssl/openssl.c
|
|
|
b74969 |
--- ./ext/openssl/openssl.c.old 2018-06-19 14:29:32.461412077 +0200
|
|
|
b74969 |
+++ ./ext/openssl/openssl.c 2018-06-19 14:29:56.351152059 +0200
|
|
|
b74969 |
@@ -1038,6 +1038,7 @@ PHP_MINIT_FUNCTION(openssl)
|
|
|
b74969 |
le_x509 = zend_register_list_destructors_ex(php_x509_free, NULL, "OpenSSL X.509", module_number);
|
|
|
b74969 |
le_csr = zend_register_list_destructors_ex(php_csr_free, NULL, "OpenSSL X.509 CSR", module_number);
|
|
|
b74969 |
|
|
|
b74969 |
+ OPENSSL_config(NULL);
|
|
|
b74969 |
SSL_library_init();
|
|
|
b74969 |
OpenSSL_add_all_ciphers();
|
|
|
b74969 |
OpenSSL_add_all_digests();
|
|
|
b74969 |
@@ -1178,6 +1179,7 @@ PHP_MINFO_FUNCTION(openssl)
|
|
|
b74969 |
PHP_MSHUTDOWN_FUNCTION(openssl)
|
|
|
b74969 |
{
|
|
|
b74969 |
EVP_cleanup();
|
|
|
b74969 |
+ CONF_modules_free();
|
|
|
b74969 |
|
|
|
b74969 |
php_unregister_url_stream_wrapper("https" TSRMLS_CC);
|
|
|
b74969 |
php_unregister_url_stream_wrapper("ftps" TSRMLS_CC);
|