Changeset 07d548d in mod_gnutls
- Timestamp:
- Jan 26, 2015, 11:41:05 AM (8 years ago)
- Branches:
- asyncio, debian/master, debian/stretch-backports, jessie-backports, main, master, proxy-ticket, upstream
- Children:
- 5342265
- Parents:
- accbb83
- Location:
- src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/gnutls_hooks.c
raccbb83 r07d548d 753 753 ap_get_module_config(c->conn_config, &gnutls_module); 754 754 755 if ((sc && (!sc->enabled || sc->proxy_enabled == GNUTLS_ENABLED_TRUE)) 756 || (ctxt && ctxt->enabled == GNUTLS_ENABLED_FALSE)) 755 if ((sc && (!sc->enabled)) || (ctxt && ctxt->enabled == GNUTLS_ENABLED_FALSE)) 757 756 { 758 757 ap_log_cerror(APLOG_MARK, APLOG_DEBUG, 0, c, "%s declined connection", -
src/mod_gnutls.c
raccbb83 r07d548d 112 112 int ssl_proxy_enable(conn_rec *c) 113 113 { 114 /* check if TLS proxy support is enabled */ 114 115 mgs_srvconf_rec *sc = (mgs_srvconf_rec *) 115 116 ap_get_module_config(c->base_server->module_config, &gnutls_module); 116 sc->proxy_enabled = GNUTLS_ENABLED_TRUE; 117 sc->enabled = GNUTLS_ENABLED_FALSE; 117 if (sc->proxy_enabled != GNUTLS_ENABLED_TRUE) 118 { 119 ap_log_cerror(APLOG_MARK, APLOG_ERR, 0, c, 120 "%s: mod_proxy requested TLS proxy, but not enabled " 121 "for %s", __func__, sc->cert_cn); 122 return 0; 123 } 124 125 /* enable TLS for this connection */ 126 mgs_handle_t *ctxt = (mgs_handle_t *) 127 ap_get_module_config(c->conn_config, &gnutls_module); 128 if (ctxt == NULL) 129 { 130 ap_log_cerror(APLOG_MARK, APLOG_DEBUG, 0, c, 131 "%s: allocating connection memory", __func__); 132 ctxt = apr_pcalloc(c->pool, sizeof (*ctxt)); 133 ap_set_module_config(c->conn_config, &gnutls_module, ctxt); 134 } 135 ctxt->enabled = GNUTLS_ENABLED_TRUE; 118 136 return 1; 119 137 }
Note: See TracChangeset
for help on using the changeset viewer.