]> granicus.if.org Git - apache/commitdiff
Add a check for SSL_ENABLED_OPTIONAL to the http_method and default_port hook so...
authorBradley Nicholes <bnicholes@apache.org>
Wed, 13 Oct 2004 15:26:45 +0000 (15:26 +0000)
committerBradley Nicholes <bnicholes@apache.org>
Wed, 13 Oct 2004 15:26:45 +0000 (15:26 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105426 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/mod_ssl.c

index 0d93fea0edce5d25fa89f900a7e7ed165bb8cde0..9b4b5f61c2bec1bc1ceede3b58ec9acb02c66021 100644 (file)
@@ -400,7 +400,7 @@ static const char *ssl_hook_http_method(const request_rec *r)
 {
     SSLSrvConfigRec *sc = mySrvConfig(r->server);
 
-    if (sc->enabled == SSL_ENABLED_FALSE) {
+    if (sc->enabled == SSL_ENABLED_FALSE || sc->enabled == SSL_ENABLED_OPTIONAL) {
         return NULL;
     }
 
@@ -411,7 +411,7 @@ static apr_port_t ssl_hook_default_port(const request_rec *r)
 {
     SSLSrvConfigRec *sc = mySrvConfig(r->server);
 
-    if (sc->enabled == SSL_ENABLED_FALSE) {
+    if (sc->enabled == SSL_ENABLED_FALSE || sc->enabled == SSL_ENABLED_OPTIONAL) {
         return 0;
     }