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

Function ssl_hook_pre_connection

modules/ssl/mod_ssl.c:658–687  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

656}
657
658static int ssl_hook_pre_connection(conn_rec *c, void *csd)
659{
660 SSLSrvConfigRec *sc;
661 SSLConnRec *sslconn = myConnConfig(c);
662
663 /*
664 * Immediately stop processing if SSL is disabled for this connection
665 */
666 if (ssl_engine_status(c, sslconn) != OK) {
667 return DECLINED;
668 }
669
670 if (sslconn) {
671 sc = mySrvConfig(sslconn->server);
672 }
673 else {
674 sc = mySrvConfig(c->base_server);
675 }
676
677 /*
678 * Remember the connection information for
679 * later access inside callback functions
680 */
681
682 ap_log_cerror(APLOG_MARK, APLOG_INFO, 0, c, APLOGNO(01964)
683 "Connection to child %ld established "
684 "(server %s)", c->id, sc->vhost_id);
685
686 return ssl_init_ssl_connection(c, NULL);
687}
688
689static int ssl_hook_process_connection(conn_rec* c)
690{

Callers

nothing calls this directly

Calls 2

ssl_engine_statusFunction · 0.85
ssl_init_ssl_connectionFunction · 0.85

Tested by

no test coverage detected