]> granicus.if.org Git - apache/commitdiff
* modules/ssl/ssl_engine_init.c (ssl_init_Module): Don't enable SSL
authorJoe Orton <jorton@apache.org>
Thu, 19 Apr 2018 08:02:41 +0000 (08:02 +0000)
committerJoe Orton <jorton@apache.org>
Thu, 19 Apr 2018 08:02:41 +0000 (08:02 +0000)
  for a vhost if SSLEnable is not used and no certs are configured,
  even if the Listen protocol is "https".  Restores behaviour to that
  prior to r1809303 for configs which would now otherwise fail at
  startup.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1829513 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/ssl_engine_init.c

index 04a38da32c2d74b5f5a8c290c48e9ef00825ad83..89ed3df0fe0411cad0427ba94c13ec4b68d22145 100644 (file)
@@ -262,7 +262,8 @@ apr_status_t ssl_init_Module(apr_pool_t *p, apr_pool_t *plog,
          * the protocol is https. */
         if (ap_get_server_protocol(s) 
             && strcmp("https", ap_get_server_protocol(s)) == 0
-            && sc->enabled == SSL_ENABLED_UNSET) {
+            && sc->enabled == SSL_ENABLED_UNSET
+            && (!apr_is_empty_array(sc->server->pks->cert_files))) {
             sc->enabled = SSL_ENABLED_TRUE;
         }