diff options
author | Bradley Nicholes <bnicholes@apache.org> | 2004-10-27 17:14:51 +0200 |
---|---|---|
committer | Bradley Nicholes <bnicholes@apache.org> | 2004-10-27 17:14:51 +0200 |
commit | d68780ff93b1b6e33cfdd92e072eb1ea6ebac202 (patch) | |
tree | a854490a3a5c3a1da44971cecd924553cf6341cf /modules/arch/netware/mod_nw_ssl.c | |
parent | Fix mod_filter to support the case where a provider sets its own f->ctx (diff) | |
download | apache2-d68780ff93b1b6e33cfdd92e072eb1ea6ebac202.tar.xz apache2-d68780ff93b1b6e33cfdd92e072eb1ea6ebac202.zip |
Add the check for an upgraded https connection when responding to the state of a connection
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105606 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/arch/netware/mod_nw_ssl.c')
-rw-r--r-- | modules/arch/netware/mod_nw_ssl.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/modules/arch/netware/mod_nw_ssl.c b/modules/arch/netware/mod_nw_ssl.c index 060b17b992..16a76ead6a 100644 --- a/modules/arch/netware/mod_nw_ssl.c +++ b/modules/arch/netware/mod_nw_ssl.c @@ -789,7 +789,9 @@ int ssl_engine_disable(conn_rec *c) static int ssl_is_https(conn_rec *c) { - return isSecureConn (c->base_server, c); + secsocket_data *csd_data = (secsocket_data*)ap_get_module_config(c->conn_config, &nwssl_module); + + return isSecureConn (c->base_server, c) || (csd_data && csd_data->is_secure); } /* This function must remain safe to use for a non-SSL connection. */ @@ -836,6 +838,12 @@ char *ssl_var_lookup(apr_pool_t *p, server_rec *s, conn_rec *c, request_rec *r, result = apr_table_get(r->headers_in, "Proxy-Connection"); else if (strcEQ(var, "HTTP_ACCEPT")) result = apr_table_get(r->headers_in, "Accept"); + else if (strcEQ(var, "HTTPS")) { + if (isSecure(r) || isSecureUpgraded(r)) + result = "on"; + else + result = "off"; + } else if (strlen(var) > 5 && strcEQn(var, "HTTP:", 5)) /* all other headers from which we are still not know about */ result = apr_table_get(r->headers_in, var+5); @@ -908,12 +916,6 @@ char *ssl_var_lookup(apr_pool_t *p, server_rec *s, conn_rec *c, request_rec *r, result = NULL; else if (strcEQ(var, "REMOTE_ADDR")) result = c->remote_ip; - else if (strcEQ(var, "HTTPS")) { - if (isSecureConn (s, c)) - result = "on"; - else - result = "off"; - } } /* |