From: Ruediger Pluem Date: Wed, 1 Apr 2015 08:34:31 +0000 (+0000) Subject: * ssl_array_index is only used by code inside the HAVE_TLS_ALPN. So silence warnings... X-Git-Tag: 2.5.0-alpha~3338 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cd8256521839a0d0879b9fe0cb046a621b2b2ddb;p=apache * ssl_array_index is only used by code inside the HAVE_TLS_ALPN. So silence warnings if don't have it. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1670578 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/ssl/ssl_engine_kernel.c b/modules/ssl/ssl_engine_kernel.c index fe3302a322..f6429801fa 100644 --- a/modules/ssl/ssl_engine_kernel.c +++ b/modules/ssl/ssl_engine_kernel.c @@ -2162,6 +2162,7 @@ int ssl_callback_SessionTicket(SSL *ssl, } #endif /* HAVE_TLS_SESSION_TICKETS */ +#ifdef HAVE_TLS_ALPN static int ssl_array_index(apr_array_header_t *array, const char *s) { @@ -2175,7 +2176,6 @@ static int ssl_array_index(apr_array_header_t *array, return -1; } -#ifdef HAVE_TLS_ALPN /* * Compare to ALPN protocol proposal. Result is similar to strcmp(): * 0 gives same precedence, >0 means proto1 is prefered.