]> granicus.if.org Git - apache/commitdiff
merge r1222930 from trunk:
authorKaspar Brand <kbrand@apache.org>
Sat, 24 Dec 2011 07:34:07 +0000 (07:34 +0000)
committerKaspar Brand <kbrand@apache.org>
Sat, 24 Dec 2011 07:34:07 +0000 (07:34 +0000)
add missing #ifdef in ssl_cmd_protocol_parse (should have been in r1222921)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1222931 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/ssl_engine_config.c

index 3934ae140c399aa989c57882c6873877719ca0df..6aab7641d696e22d5fa4dbf410fa23d40e35988b 100644 (file)
@@ -1283,12 +1283,14 @@ static const char *ssl_cmd_protocol_parse(cmd_parms *parms,
         else if (strcEQ(w, "TLSv1")) {
             thisopt = SSL_PROTOCOL_TLSV1;
         }
+#ifdef HAVE_TLSV1_X
         else if (strcEQ(w, "TLSv1.1")) {
             thisopt = SSL_PROTOCOL_TLSV1_1;
         }
         else if (strcEQ(w, "TLSv1.2")) {
             thisopt = SSL_PROTOCOL_TLSV1_2;
         }
+#endif
         else if (strcEQ(w, "all")) {
             thisopt = SSL_PROTOCOL_ALL;
         }