From 758b54d0fd710e83cb3618f36b279c9e81326cce Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sat, 24 Nov 2001 00:40:15 +0000 Subject: [PATCH] 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 --- modules/ssl/ssl_engine_init.c | 6 +++++- modules/ssl/ssl_engine_kernel.c | 5 ----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/modules/ssl/ssl_engine_init.c b/modules/ssl/ssl_engine_init.c index cbb86d1f7a..a13aa7199a 100644 --- a/modules/ssl/ssl_engine_init.c +++ b/modules/ssl/ssl_engine_init.c @@ -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); - SSL_CTX_set_info_callback(ctx, ssl_callback_LogTracingState); + + 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 diff --git a/modules/ssl/ssl_engine_kernel.c b/modules/ssl/ssl_engine_kernel.c index bb8bd104b7..14d1cd6fe3 100644 --- a/modules/ssl/ssl_engine_kernel.c +++ b/modules/ssl/ssl_engine_kernel.c @@ -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 */ -- 2.40.0