mirror of
https://github.com/apache/httpd.git
synced 2025-08-07 04:02:58 +03:00
Merge the listen-protocol sandbox branch to trunk.
I will be adding documentation for the new directives hopefully in the next day or so. * server/core.c: Added 'Protocol' to the core module config Added ap_{set,get}_server_protocol API. Added new directive: 'AcceptFilter'. Enable 'httpready' by default on systems that support it. Use dataready filters for others. * server/listen.c: Attempt to inherit protocols from Listener Records to Server configs. The 'Listen' directive can now optionally take a protocol arg Move bits that determined which accept filter is applied to core.c. Added bits to find the correct accept filter based on the core's configuration. * include/{ap_listen.h,http_core.h}: Add Protocol to respective structures. * include/http_core.h: Add the accf_map table to the core_server_config structure * include/ap_mmn.h: Minor MMN Bump for the new interfacces. * modules/ssl/ssl_engine_init.c: Use the new protocol framework to enable mod_ssl for 'https' websites. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@190563 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -207,6 +207,10 @@ int ssl_init_Module(apr_pool_t *p, apr_pool_t *plog,
|
||||
sc->vhost_id = ssl_util_vhostid(p, s);
|
||||
sc->vhost_id_len = strlen(sc->vhost_id);
|
||||
|
||||
if (strcmp("https", ap_get_server_protocol(s)) == 0) {
|
||||
sc->enabled = SSL_ENABLED_TRUE;
|
||||
}
|
||||
|
||||
/* If sc->enabled is UNSET, then SSL is optional on this vhost */
|
||||
/* Fix up stuff that may not have been set */
|
||||
if (sc->enabled == SSL_ENABLED_UNSET) {
|
||||
@@ -879,7 +883,8 @@ static void ssl_init_server_certs(server_rec *s,
|
||||
|
||||
if (!(have_rsa || have_dsa)) {
|
||||
ap_log_error(APLOG_MARK, APLOG_ERR, 0, s,
|
||||
"Oops, no RSA or DSA server certificate found?!");
|
||||
"Oops, no RSA or DSA server certificate found "
|
||||
"for '%s:%d'?!", s->server_hostname, s->port);
|
||||
ssl_die();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user