]> granicus.if.org Git - apache/commitdiff
* ssl_array_index is only used by code inside the HAVE_TLS_ALPN. So silence warnings...
authorRuediger Pluem <rpluem@apache.org>
Wed, 1 Apr 2015 08:34:31 +0000 (08:34 +0000)
committerRuediger Pluem <rpluem@apache.org>
Wed, 1 Apr 2015 08:34:31 +0000 (08:34 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1670578 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/ssl_engine_kernel.c

index fe3302a3225b74b9a36db8b0332480e8855ac065..f6429801fa513dbd4d5b9c2fb612d56dd8d4d9a5 100644 (file)
@@ -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.