diff options
author | Stefan Eissing <icing@apache.org> | 2021-02-23 16:08:24 +0100 |
---|---|---|
committer | Stefan Eissing <icing@apache.org> | 2021-02-23 16:08:24 +0100 |
commit | 89859aab378cba086ecb21d5057b285cdd17ae4b (patch) | |
tree | 08b38249f2a82106cb6bc0969fbb272469e2eb6c /server/core.c | |
parent | mod_htt2, synch with changes from github module version: (diff) | |
download | apache2-89859aab378cba086ecb21d5057b285cdd17ae4b.tar.xz apache2-89859aab378cba086ecb21d5057b285cdd17ae4b.zip |
*) core: Adding SSL related inquiry functions to the server API.
These function are always available, even when no module providing
SSL is loaded. They provide their own "shadowing" implementation for
the optional functions of similar name that mod_ssl and impersonators
of mod_ssl provide.
This enables loading of several SSL providing modules when all but
one of them registers itself into the new hooks. Two old-style SSL
modules will not work, as they replace the others optional functions
with their own.
Modules using the old-style optional functions will continue to work
as core supplies its own versions of those.
The following has been added so far:
- ap_ssl_conn_is_ssl() to query if a connection is using SSL.
- ap_ssl_var_lookup() to query SSL related variables for a
server/connection/request.
- Hooks for 'ssl_conn_is_ssl' and 'ssl_var_lookup' where modules
providing SSL can install their own value supplying functions.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1886840 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server/core.c')
-rw-r--r-- | server/core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/core.c b/server/core.c index e3d4b77183..44d832b07a 100644 --- a/server/core.c +++ b/server/core.c @@ -5312,6 +5312,7 @@ static int core_post_config(apr_pool_t *pconf, apr_pool_t *plog, apr_pool_t *pte set_banner(pconf); ap_setup_make_content_type(pconf); ap_setup_auth_internal(ptemp); + ap_setup_ssl_optional_fns(pconf); if (!sys_privileges) { ap_log_error(APLOG_MARK, APLOG_CRIT, 0, NULL, APLOGNO(00136) "Server MUST relinquish startup privileges before " |