Loading mod_ssl.c +1 −0 Changes for mod_ssl.c: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -229,6 +229,7 @@ static int ssl_hook_pre_connection(conn_rec *c) * Create SSL context */ myConnConfigSet(c, sslconn); sslconn->log_level = sc->nLogLevel; /* * Immediately stop processing if SSL is disabled for this connection Loading mod_ssl.h +3 −0 Changes for mod_ssl.h: 3 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -459,8 +459,11 @@ typedef struct { const char *verify_info; const char *verify_error; int verify_depth; int log_level; /* for avoiding expensive logging */ } SSLConnRec; #define SSLConnLogApplies(sslconn, level) (sslconn->log_level >= level) typedef struct { apr_pool_t *pPool; BOOL bFixed; Loading ssl_engine_kernel.c +8 −3 Changes for ssl_engine_kernel.c: 8 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -146,10 +146,14 @@ apr_status_t ssl_hook_CloseConnection(SSLFilterRec *filter) SSL_smart_shutdown(ssl); /* and finally log the fact that we've closed the connection */ if (SSLConnLogApplies(sslconn, SSL_LOG_INFO)) { ssl_log(conn->base_server, SSL_LOG_INFO, "Connection to child %d closed with %s shutdown (server %s, client %s)", conn->id, cpType, ssl_util_vhostid(conn->pool, conn->base_server), "Connection to child %d closed with %s shutdown" "(server %s, client %s)", conn->id, cpType, ssl_util_vhostid(conn->pool, conn->base_server), conn->remote_ip != NULL ? conn->remote_ip : "unknown"); } /* deallocate the SSL connection */ SSL_free(ssl); Loading Loading @@ -242,7 +246,7 @@ int ssl_hook_Translate(request_rec *r) /* * Log information about incoming HTTPS requests */ if (ap_is_initial_req(r)) if (ap_is_initial_req(r) && SSLConnLogApplies(sslconn, SSL_LOG_INFO)) { ssl_log(r->server, SSL_LOG_INFO, "%s HTTPS request received for child %d (server %s)", r->connection->keepalives <= 0 ? Loading @@ -251,6 +255,7 @@ int ssl_hook_Translate(request_rec *r) r->connection->keepalives+1), r->connection->id, ssl_util_vhostid(r->pool, r->server)); } /* SetEnvIf ssl-*-shutdown flags can only be per-server, * so they won't change across keepalive requests Loading Loading
mod_ssl.c +1 −0 Changes for mod_ssl.c: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -229,6 +229,7 @@ static int ssl_hook_pre_connection(conn_rec *c) * Create SSL context */ myConnConfigSet(c, sslconn); sslconn->log_level = sc->nLogLevel; /* * Immediately stop processing if SSL is disabled for this connection Loading
mod_ssl.h +3 −0 Changes for mod_ssl.h: 3 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -459,8 +459,11 @@ typedef struct { const char *verify_info; const char *verify_error; int verify_depth; int log_level; /* for avoiding expensive logging */ } SSLConnRec; #define SSLConnLogApplies(sslconn, level) (sslconn->log_level >= level) typedef struct { apr_pool_t *pPool; BOOL bFixed; Loading
ssl_engine_kernel.c +8 −3 Changes for ssl_engine_kernel.c: 8 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -146,10 +146,14 @@ apr_status_t ssl_hook_CloseConnection(SSLFilterRec *filter) SSL_smart_shutdown(ssl); /* and finally log the fact that we've closed the connection */ if (SSLConnLogApplies(sslconn, SSL_LOG_INFO)) { ssl_log(conn->base_server, SSL_LOG_INFO, "Connection to child %d closed with %s shutdown (server %s, client %s)", conn->id, cpType, ssl_util_vhostid(conn->pool, conn->base_server), "Connection to child %d closed with %s shutdown" "(server %s, client %s)", conn->id, cpType, ssl_util_vhostid(conn->pool, conn->base_server), conn->remote_ip != NULL ? conn->remote_ip : "unknown"); } /* deallocate the SSL connection */ SSL_free(ssl); Loading Loading @@ -242,7 +246,7 @@ int ssl_hook_Translate(request_rec *r) /* * Log information about incoming HTTPS requests */ if (ap_is_initial_req(r)) if (ap_is_initial_req(r) && SSLConnLogApplies(sslconn, SSL_LOG_INFO)) { ssl_log(r->server, SSL_LOG_INFO, "%s HTTPS request received for child %d (server %s)", r->connection->keepalives <= 0 ? Loading @@ -251,6 +255,7 @@ int ssl_hook_Translate(request_rec *r) r->connection->keepalives+1), r->connection->id, ssl_util_vhostid(r->pool, r->server)); } /* SetEnvIf ssl-*-shutdown flags can only be per-server, * so they won't change across keepalive requests Loading