Commit 72540136 authored by Doug MacEachern's avatar Doug MacEachern
Browse files

get rid of ssl_log_applies() function. it does more than we need and

what should be done with a macro.  it was only used once anyhow.
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk/modules/ssl@92237 13f79535-47bb-0310-9956-ffa450edef68
parent 471a447a
Loading
Loading
Loading
Loading
+0 −1
Changes for mod_ssl.h: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -711,7 +711,6 @@ int ssl_mutex_kill(server_rec *);

/*  Logfile Support  */
void         ssl_log_open(server_rec *, server_rec *, apr_pool_t *);
BOOL         ssl_log_applies(server_rec *, int);
void         ssl_log(server_rec *, int, const char *, ...);
void         ssl_die(void);

+1 −1
Changes for ssl_engine_kernel.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -1406,7 +1406,7 @@ int ssl_callback_SSLVerify_CRL(
         * Log information about CRL
         * (A little bit complicated because of ASN.1 and BIOs...)
         */
        if (ssl_log_applies(s, SSL_LOG_TRACE)) {
        if (sc->nLogLevel >= SSL_LOG_TRACE) {
            bio = BIO_new(BIO_s_mem());
            BIO_printf(bio, "lastUpdate: ");
            ASN1_UTCTIME_print(bio, X509_CRL_get_lastUpdate(crl));
+0 −14
Changes for ssl_engine_log.c: 0 added lines, 14 removed lines.
Original line number Diff line number Diff line
@@ -162,20 +162,6 @@ static char *ssl_log_annotation(char *error)
    return errstr;
}

BOOL ssl_log_applies(server_rec *s, int level)
{
    SSLSrvConfigRec *sc;

    sc = mySrvConfig(s);
    if (   sc->fileLogFile == NULL
        && !(level & SSL_LOG_ERROR))
        return FALSE;
    if (   level > sc->nLogLevel
        && !(level & SSL_LOG_ERROR))
        return FALSE;
    return TRUE;
}

void ssl_log(server_rec *s, int level, const char *msg, ...)
{
    char tstr[80];