mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
don't bother setting the ssl info callback unless SSLLogLevel >= info
PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92151 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -561,7 +561,11 @@ void ssl_init_ConfigureServer(server_rec *s, apr_pool_t *p, SSLSrvConfigRec *sc)
|
||||
SSL_CTX_sess_set_remove_cb(ctx, ssl_callback_DelSessionCacheEntry);
|
||||
SSL_CTX_set_tmp_rsa_callback(ctx, ssl_callback_TmpRSA);
|
||||
SSL_CTX_set_tmp_dh_callback(ctx, ssl_callback_TmpDH);
|
||||
|
||||
if (sc->nLogLevel >= SSL_LOG_INFO) {
|
||||
/* this callback only logs if SSLLogLevel >= info */
|
||||
SSL_CTX_set_info_callback(ctx,ssl_callback_LogTracingState);
|
||||
}
|
||||
|
||||
/*
|
||||
* Configure SSL Cipher Suite
|
||||
|
@@ -1654,11 +1654,6 @@ void ssl_callback_LogTracingState(SSL *ssl, int where, int rc)
|
||||
if ((sc = mySrvConfig(s)) == NULL)
|
||||
return;
|
||||
|
||||
if (sc->nLogLevel < SSL_LOG_INFO) {
|
||||
/* nothing todo here */
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
* create the various trace messages
|
||||
*/
|
||||
|
Reference in New Issue
Block a user