From: Doug MacEachern Date: Sat, 24 Nov 2001 00:40:15 +0000 (+0000) Subject: don't bother setting the ssl info callback unless SSLLogLevel >= info X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd233547a62740e2a6d9c761eb3ddf743c148c3c;p=thirdparty%2Fapache%2Fhttpd.git 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/modules/ssl@92151 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/ssl_engine_init.c b/ssl_engine_init.c index cbb86d1f7ae..a13aa7199ae 100644 --- a/ssl_engine_init.c +++ b/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/ssl_engine_kernel.c b/ssl_engine_kernel.c index bb8bd104b70..14d1cd6fe3b 100644 --- a/ssl_engine_kernel.c +++ b/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 */