diff options
author | Shane Caraveo <shane@php.net> | 2002-09-08 20:52:03 +0000 |
---|---|---|
committer | Shane Caraveo <shane@php.net> | 2002-09-08 20:52:03 +0000 |
commit | 2c6dca5a6e2bcab145b5a37c3ba1ea4b4a9ea23d (patch) | |
tree | 113645188b970ef0efb9366f7f08a7e2063d39d5 | |
parent | 8dbcb26fd0e6f7bd08ffd45d5b56ae376488e862 (diff) | |
download | php-git-2c6dca5a6e2bcab145b5a37c3ba1ea4b4a9ea23d.tar.gz |
someone missed code requiring ssl
-rw-r--r-- | ext/standard/ftp_fopen_wrapper.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/standard/ftp_fopen_wrapper.c b/ext/standard/ftp_fopen_wrapper.c index 41861a19d3..18cd52fd64 100644 --- a/ext/standard/ftp_fopen_wrapper.c +++ b/ext/standard/ftp_fopen_wrapper.c @@ -413,12 +413,14 @@ php_stream * php_stream_url_wrap_ftp(php_stream_wrapper *wrapper, char *path, ch php_stream_context_set(datastream, context); php_stream_notify_progress_init(context, 0, file_size); +#if HAVE_OPENSSL_EXT if (use_ssl_on_data && php_stream_sock_ssl_activate_with_method(datastream, 1, SSLv23_method()) == FAILURE) { php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "Unable to activate SSL mode"); php_stream_close(datastream); datastream = NULL; goto errexit; } +#endif php_url_free(resource); return datastream; |