| 656 | } |
| 657 | |
| 658 | static 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 | |
| 689 | static int ssl_hook_process_connection(conn_rec* c) |
| 690 | { |
nothing calls this directly
no test coverage detected