From 93d3ae28e1dcbb7994b104c208ab1310828775c6 Mon Sep 17 00:00:00 2001 From: Niels Dossche <7771979+nielsdos@users.noreply.github.com> Date: Sat, 23 Mar 2024 19:32:44 +0100 Subject: [PATCH] Remove obsolete OpenSSL code in ext/ftp MINIT (#13793) Follow-up on GH-13498. These functions inside this #if block are either deprecated or do nothing anymore on OpenSSL versions >= 1.1.0. --- ext/ftp/php_ftp.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/ext/ftp/php_ftp.c b/ext/ftp/php_ftp.c index 2f0f2b0d641..11763acbd17 100644 --- a/ext/ftp/php_ftp.c +++ b/ext/ftp/php_ftp.c @@ -99,15 +99,6 @@ static void ftp_object_destroy(zend_object *zobj) { PHP_MINIT_FUNCTION(ftp) { -#if defined(HAVE_FTP_SSL) && !defined(LIBRESSL_VERSION_NUMBER) - SSL_library_init(); - OpenSSL_add_all_ciphers(); - OpenSSL_add_all_digests(); - OpenSSL_add_all_algorithms(); - - SSL_load_error_strings(); -#endif - php_ftp_ce = register_class_FTP_Connection(); php_ftp_ce->create_object = ftp_object_create;