| 126 | } |
| 127 | |
| 128 | AP_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 | |
| 164 | AP_DECLARE(int) ap_ssl_has_outgoing_handlers(void) |
| 165 | { |
no outgoing calls
no test coverage detected