]> granicus.if.org Git - php/commitdiff
Prevent implicit function declaration when TLSEXT unavailable
authorDaniel Lowrey <rdlowrey@php.net>
Wed, 26 Feb 2014 02:12:33 +0000 (19:12 -0700)
committerDaniel Lowrey <rdlowrey@php.net>
Wed, 26 Feb 2014 02:12:33 +0000 (19:12 -0700)
ext/openssl/xp_ssl.c

index 8971cdabc12fd94c2f7c4cbd8bf121ad8d582f31..7424cd8de2af6851eabd53fcad8db30ad0722a65 100644 (file)
@@ -800,6 +800,7 @@ static int php_enable_server_crypto_opts(php_stream *stream,
        return 1;
 }
 
+#if OPENSSL_VERSION_NUMBER >= 0x00908070L && !defined(OPENSSL_NO_TLSEXT)
 static inline void enable_client_sni(php_stream *stream, php_openssl_netstream_data_t *sslsock) /* {{{ */
 {
        zval **val;
@@ -819,6 +820,7 @@ static inline void enable_client_sni(php_stream *stream, php_openssl_netstream_d
        }
 }
 /* }}} */
+#endif
 
 static inline int php_openssl_enable_crypto(php_stream *stream,
                php_openssl_netstream_data_t *sslsock,