]> granicus.if.org Git - php/commitdiff
Update openssl.c
authorEric F <iEFdev@users.noreply.github.com>
Sat, 28 Mar 2015 03:20:42 +0000 (04:20 +0100)
committeriEFdev <eric@iefdev.se>
Sun, 29 Mar 2015 23:30:09 +0000 (01:30 +0200)
Adding additional checks for sslv3.

ext/openssl/openssl.c

index 0c20fa1e1577e5fc3e3f01c995635d979f720cd5..1697d80bb95ec96df9b4b1801e5f8331bbe125b6 100644 (file)
@@ -1250,7 +1250,9 @@ PHP_MINIT_FUNCTION(openssl)
        }
 
        php_stream_xport_register("ssl", php_openssl_ssl_socket_factory);
+#ifndef OPENSSL_NO_SSL3
        php_stream_xport_register("sslv3", php_openssl_ssl_socket_factory);
+#endif
 #ifndef OPENSSL_NO_SSL2
        php_stream_xport_register("sslv2", php_openssl_ssl_socket_factory);
 #endif
@@ -1299,7 +1301,9 @@ PHP_MSHUTDOWN_FUNCTION(openssl)
 #ifndef OPENSSL_NO_SSL2
        php_stream_xport_unregister("sslv2");
 #endif
+#ifndef OPENSSL_NO_SSL3
        php_stream_xport_unregister("sslv3");
+#endif
        php_stream_xport_unregister("tls");
        php_stream_xport_unregister("tlsv1.0");
 #if OPENSSL_VERSION_NUMBER >= 0x10001001L