2013-10-31 15:54:58 +00:00
|
|
|
# ./pullrev.sh 1537535
|
|
|
|
|
|
|
|
http://svn.apache.org/viewvc?view=revision&revision=1537535
|
|
|
|
|
2013-11-27 17:19:09 +00:00
|
|
|
--- httpd-2.4.7/modules/ssl/ssl_engine_config.c.r1537535
|
|
|
|
+++ httpd-2.4.7/modules/ssl/ssl_engine_config.c
|
|
|
|
@@ -196,7 +196,7 @@ static SSLSrvConfigRec *ssl_config_serve
|
2013-10-31 15:54:58 +00:00
|
|
|
SSLSrvConfigRec *sc = apr_palloc(p, sizeof(*sc));
|
|
|
|
|
|
|
|
sc->mc = NULL;
|
|
|
|
- sc->enabled = SSL_ENABLED_FALSE;
|
|
|
|
+ sc->enabled = SSL_ENABLED_UNSET;
|
|
|
|
sc->proxy_enabled = UNSET;
|
|
|
|
sc->vhost_id = NULL; /* set during module init */
|
|
|
|
sc->vhost_id_len = 0; /* set during module init */
|
2013-11-27 17:19:09 +00:00
|
|
|
--- httpd-2.4.7/modules/ssl/ssl_engine_init.c.r1537535
|
|
|
|
+++ httpd-2.4.7/modules/ssl/ssl_engine_init.c
|
|
|
|
@@ -115,13 +115,16 @@ int ssl_init_Module(apr_pool_t *p, apr_p
|
2013-10-31 15:54:58 +00:00
|
|
|
sc->vhost_id = ssl_util_vhostid(p, s);
|
|
|
|
sc->vhost_id_len = strlen(sc->vhost_id);
|
|
|
|
|
|
|
|
- if (ap_get_server_protocol(s) &&
|
|
|
|
- strcmp("https", ap_get_server_protocol(s)) == 0) {
|
|
|
|
+ /* Default to enabled if SSLEngine is not set explicitly, and
|
|
|
|
+ * 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_TRUE;
|
|
|
|
}
|
|
|
|
|
2013-11-27 17:19:09 +00:00
|
|
|
- /* If sc->enabled is UNSET, then SSL is optional on this vhost */
|
2013-10-31 15:54:58 +00:00
|
|
|
- /* Fix up stuff that may not have been set */
|
|
|
|
+ /* Fix up stuff that may not have been set. If sc->enabled is
|
|
|
|
+ * UNSET, then SSL is disabled on this vhost. */
|
|
|
|
if (sc->enabled == SSL_ENABLED_UNSET) {
|
|
|
|
sc->enabled = SSL_ENABLED_FALSE;
|
|
|
|
}
|