MCPcopy Create free account
hub / github.com/apache/httpd / ap_ssl_bind_outgoing

Function ap_ssl_bind_outgoing

server/ssl.c:128–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128AP_DECLARE(int) ap_ssl_bind_outgoing(conn_rec *c, struct ap_conf_vector_t *dir_conf,
129 int enable_ssl)
130{
131 int rv, enabled = 0;
132
133 c->outgoing = 1;
134 rv = ap_run_ssl_bind_outgoing(c, dir_conf, enable_ssl);
135 enabled = (rv == OK);
136 if (enable_ssl && !enabled) {
137 /* the hooks did not take over. Is there an old skool optional that will? */
138 if (module_ssl_engine_set) {
139 enabled = module_ssl_engine_set(c, dir_conf, 1, 1);
140 }
141 else if (module_ssl_proxy_enable) {
142 enabled = module_ssl_proxy_enable(c);
143 }
144 }
145 else {
146 /* !enable_ssl || enabled
147 * any existing optional funcs need to not enable here */
148 if (module_ssl_engine_set) {
149 module_ssl_engine_set(c, dir_conf, 1, 0);
150 }
151 else if (module_ssl_engine_disable) {
152 module_ssl_engine_disable(c);
153 }
154 }
155 if (enable_ssl && !enabled) {
156 ap_log_cerror(APLOG_MARK, APLOG_ERR, 0,
157 c, APLOGNO(01961) " failed to enable ssl support "
158 "[Hint: if using mod_ssl, see SSLProxyEngine]");
159 return DECLINED;
160 }
161 return OK;
162}
163
164AP_DECLARE(int) ap_ssl_has_outgoing_handlers(void)
165{

Callers 6

ap_proxy_ssl_enableFunction · 0.85
ap_proxy_ssl_disableFunction · 0.85
ap_proxy_ssl_engineFunction · 0.85
ssl_engine_setFunction · 0.85
ssl_proxy_enableFunction · 0.85
ssl_engine_disableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected