| 509 | } |
| 510 | |
| 511 | static int ssl_engine_status(conn_rec *c, SSLConnRec *sslconn) |
| 512 | { |
| 513 | if (c->master) { |
| 514 | return DECLINED; |
| 515 | } |
| 516 | if (sslconn) { |
| 517 | /* This connection has already been configured. Check what applies. */ |
| 518 | if (sslconn->disabled) { |
| 519 | return SUSPENDED; |
| 520 | } |
| 521 | if (c->outgoing) { |
| 522 | if (!sslconn->dc->proxy_enabled) { |
| 523 | return DECLINED; |
| 524 | } |
| 525 | } |
| 526 | else { |
| 527 | if (mySrvConfig(sslconn->server)->enabled != SSL_ENABLED_TRUE) { |
| 528 | return DECLINED; |
| 529 | } |
| 530 | } |
| 531 | } |
| 532 | else { |
| 533 | /* we decline by default for outgoing connections and for incoming |
| 534 | * where the base_server is not enabled. */ |
| 535 | if (c->outgoing || mySrvConfig(c->base_server)->enabled != SSL_ENABLED_TRUE) { |
| 536 | return DECLINED; |
| 537 | } |
| 538 | } |
| 539 | return OK; |
| 540 | } |
| 541 | |
| 542 | static int ssl_hook_ssl_bind_outgoing(conn_rec *c, |
| 543 | ap_conf_vector_t *per_dir_config, |
no outgoing calls
no test coverage detected