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

Function ssl_engine_status

modules/ssl/mod_ssl.c:511–540  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

509}
510
511static 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
542static int ssl_hook_ssl_bind_outgoing(conn_rec *c,
543 ap_conf_vector_t *per_dir_config,

Callers 2

ssl_hook_pre_connectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected