| 595 | } |
| 596 | |
| 597 | static int hc_get_backend(const char *proxy_function, proxy_conn_rec **backend, |
| 598 | proxy_worker *hc, sctx_t *ctx) |
| 599 | { |
| 600 | int status; |
| 601 | |
| 602 | status = ap_proxy_acquire_connection(proxy_function, backend, hc, ctx->s); |
| 603 | if (status != OK) { |
| 604 | return status; |
| 605 | } |
| 606 | |
| 607 | if (strcmp(hc->s->scheme, "https") == 0 || strcmp(hc->s->scheme, "wss") == 0 ) { |
| 608 | if (!ap_ssl_has_outgoing_handlers()) { |
| 609 | ap_log_error(APLOG_MARK, APLOG_WARNING, 0, ctx->s, APLOGNO(03252) |
| 610 | "mod_ssl not configured?"); |
| 611 | return !OK; |
| 612 | } |
| 613 | (*backend)->is_ssl = 1; |
| 614 | } |
| 615 | |
| 616 | return hc_determine_connection(proxy_function, *backend, ctx->s); |
| 617 | } |
| 618 | |
| 619 | static apr_status_t hc_init_baton(baton_t *baton) |
| 620 | { |
no test coverage detected