Changeset 37f8282 in mod_gnutls for src/mod_gnutls.c
- Timestamp:
- Dec 7, 2011, 12:22:48 AM (9 years ago)
- Branches:
- asyncio, debian/master, debian/stretch-backports, jessie-backports, master, msva, proxy-ticket, upstream
- Children:
- 694fc04
- Parents:
- 33826c5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mod_gnutls.c
r33826c5 r37f8282 21 21 22 22 static void gnutls_hooks(apr_pool_t * p) { 23 24 ap_hook_open_logs(mgs_hook_open_logs, NULL, NULL,APR_HOOK_MIDDLE); 23 25 24 /* Try Run Post-Config Hook After mod_proxy */ 26 25 static const char * const aszPre[] = { "mod_proxy.c", NULL }; … … 33 32 #endif 34 33 /* Default Port Hook */ 35 ap_hook_default_port( nss_hook_default_port, NULL,NULL, APR_HOOK_MIDDLE);34 ap_hook_default_port(mgs_hook_default_port, NULL,NULL, APR_HOOK_MIDDLE); 36 35 /* Pre-Connect Hook */ 37 ap_hook_pre_connection(mgs_hook_ default_port, NULL, NULL, APR_HOOK_MIDDLE);36 ap_hook_pre_connection(mgs_hook_pre_connection, NULL, NULL, APR_HOOK_MIDDLE); 38 37 /* Pre-Config Hook */ 39 38 ap_hook_pre_config(mgs_hook_pre_config, NULL, NULL, … … 68 67 mgs_srvconf_rec *sc = (mgs_srvconf_rec *) 69 68 ap_get_module_config(c->base_server->module_config, &gnutls_module); 70 if(sc->enabled == GNUTLS_ENABLED_FALSE || sc->non_ssl_request) {69 if(sc->enabled == 0 || sc->non_ssl_request == 1) { 71 70 /* SSL/TLS Disabled or Plain HTTP Connection Detected */ 72 71 return 0; … … 92 91 mgs_srvconf_rec *sc = (mgs_srvconf_rec *) 93 92 ap_get_module_config(c->base_server->module_config, &gnutls_module); 94 return sc->proxy_enabled; 93 sc->proxy_enabled = 1; 94 sc->enabled = 0; 95 return 1; 95 96 } 96 97 … … 99 100 NULL, 100 101 RSRC_CONF | OR_AUTHCFG, 101 " Set Verification Requirements of the Client Certificate"),102 "Enable SSL Proxy Engine"), 102 103 AP_INIT_TAKE1("GnuTLSClientVerify", mgs_set_client_verify, 103 104 NULL,
Note: See TracChangeset
for help on using the changeset viewer.