]> granicus.if.org Git - php/commitdiff
someone missed code requiring ssl
authorShane Caraveo <shane@php.net>
Sun, 8 Sep 2002 20:52:03 +0000 (20:52 +0000)
committerShane Caraveo <shane@php.net>
Sun, 8 Sep 2002 20:52:03 +0000 (20:52 +0000)
ext/standard/ftp_fopen_wrapper.c

index 41861a19d3974209a9e5eb975ceaf2ca5ab5aa3a..18cd52fd64fbcac94f3b94c734934b881f4616ff 100644 (file)
@@ -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;