Changeset e8acf05 in mod_gnutls for src/mod_gnutls.c
- Timestamp:
- Jan 20, 2015, 10:45:39 AM (8 years ago)
- Branches:
- asyncio, debian/master, debian/stretch-backports, jessie-backports, master, proxy-ticket, upstream
- Children:
- c782c1f
- Parents:
- e4b58b6
- git-author:
- Thomas Klute <thomas2.klute@…> (01/20/15 10:30:36)
- git-committer:
- Thomas Klute <thomas2.klute@…> (01/20/15 10:45:39)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mod_gnutls.c
re4b58b6 re8acf05 20 20 #include "mod_gnutls.h" 21 21 22 static void gnutls_hooks(apr_pool_t * p __attribute__((unused))) { 23 22 #ifdef APLOG_USE_MODULE 23 APLOG_USE_MODULE(gnutls); 24 #endif 25 26 static void gnutls_hooks(apr_pool_t * p __attribute__((unused))) 27 { 24 28 /* Try Run Post-Config Hook After mod_proxy */ 25 29 static const char * const aszPre[] = { "mod_proxy.c", NULL }; … … 75 79 } 76 80 77 int ssl_engine_disable(conn_rec *c) { 81 int ssl_engine_disable(conn_rec *c) 82 { 78 83 mgs_srvconf_rec *sc = (mgs_srvconf_rec *) 79 84 ap_get_module_config(c->base_server->module_config, &gnutls_module); 80 85 if(sc->enabled == GNUTLS_ENABLED_FALSE) { 81 86 return 1; 82 87 } 88 89 /* disable TLS for this connection */ 90 mgs_handle_t *ctxt = (mgs_handle_t *) ap_get_module_config(c->conn_config, &gnutls_module); 91 if (ctxt == NULL) 92 { 93 ap_log_cerror(APLOG_MARK, APLOG_DEBUG, 0, c, "%s: allocating connection memory", __func__); 94 ctxt = apr_pcalloc(c->pool, sizeof (*ctxt)); 95 ap_set_module_config(c->conn_config, &gnutls_module, ctxt); 96 } 97 ctxt->enabled = GNUTLS_ENABLED_FALSE; 98 83 99 if (c->input_filters) 84 100 ap_remove_input_filter(c->input_filters); … … 86 102 ap_remove_output_filter(c->output_filters); 87 103 mgs_cleanup_pre_config(c->pool); 88 sc->enabled = GNUTLS_ENABLED_FALSE;89 104 return 1; 90 105 }
Note: See TracChangeset
for help on using the changeset viewer.