diff options
author | Rosen Penev <rosenp@gmail.com> | 2019-04-27 11:17:28 -0700 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-06-14 15:38:12 +0200 |
commit | 32e6d08dcd25418c96d8fe2218802a07fdf3363d (patch) | |
tree | 97d580baed64809b1eec29715bbc94a311bc0350 /ext/ftp | |
parent | 8f4e24eeef7bd1c39fabf5bea016abb287a4c606 (diff) | |
download | php-git-32e6d08dcd25418c96d8fe2218802a07fdf3363d.tar.gz |
Fix compilation without deprecated OpenSSL 1.1 APIs
Diffstat (limited to 'ext/ftp')
-rw-r--r-- | ext/ftp/php_ftp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/ftp/php_ftp.c b/ext/ftp/php_ftp.c index 5bd1fa70cc..e3b425ef0f 100644 --- a/ext/ftp/php_ftp.c +++ b/ext/ftp/php_ftp.c @@ -318,6 +318,7 @@ static void ftp_destructor_ftpbuf(zend_resource *rsrc) PHP_MINIT_FUNCTION(ftp) { #ifdef HAVE_FTP_SSL +#if OPENSSL_VERSION_NUMBER < 0x10101000 && !defined(LIBRESSL_VERSION_NUMBER) SSL_library_init(); OpenSSL_add_all_ciphers(); OpenSSL_add_all_digests(); @@ -325,6 +326,7 @@ PHP_MINIT_FUNCTION(ftp) SSL_load_error_strings(); #endif +#endif le_ftpbuf = zend_register_list_destructors_ex(ftp_destructor_ftpbuf, NULL, le_ftpbuf_name, module_number); REGISTER_LONG_CONSTANT("FTP_ASCII", FTPTYPE_ASCII, CONST_PERSISTENT | CONST_CS); |