SSL_smart_shutdown(ssl);
/* and finally log the fact that we've closed the connection */
- if (mySrvFromConn(c)->loglevel >= APLOG_INFO) {
+ if (APLOGcinfo(c)) {
ap_log_cerror(APLOG_MARK, APLOG_INFO, 0, c,
"Connection closed to child %ld with %s shutdown "
"(server %s)",
apr_pool_cleanup_register(c->pool, (void*)filter_ctx,
ssl_io_filter_cleanup, apr_pool_cleanup_null);
- if ((s->loglevel >= APLOG_DEBUG)
- && (sc->ssl_log_level >= SSL_LOG_IO)) {
+ if (APLOGcdebug(c) && (sc->ssl_log_level >= SSL_LOG_IO)) {
BIO_set_callback(SSL_get_rbio(ssl), ssl_io_data_cb);
BIO_set_callback_arg(SSL_get_rbio(ssl), (void *)ssl);
}
/*
* Log information about incoming HTTPS requests
*/
- if (r->server->loglevel >= APLOG_INFO && ap_is_initial_req(r)) {
- ap_log_error(APLOG_MARK, APLOG_INFO, 0, r->server,
+ if (APLOGrinfo(r) && ap_is_initial_req(r)) {
+ ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r,
"%s HTTPS request received for child %ld (server %s)",
(r->connection->keepalives <= 0 ?
"Initial (No.1)" :
* Log information about CRL
* (A little bit complicated because of ASN.1 and BIOs...)
*/
- if (s->loglevel >= APLOG_DEBUG) {
+ if (APLOGdebug(s)) {
char buff[512]; /* should be plenty */
BIO *bio = BIO_new(BIO_s_mem());
ASN1_INTEGER *sn = X509_REVOKED_get_serialNumber(revoked);
if (!ASN1_INTEGER_cmp(sn, X509_get_serialNumber(cert))) {
- if (s->loglevel >= APLOG_DEBUG) {
+ if (APLOGdebug(s)) {
char *cp = X509_NAME_oneline(issuer, NULL, 0);
long serial = ASN1_INTEGER_get(sn);
- ap_log_error(APLOG_MARK, APLOG_INFO, 0, s,
+ ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, s,
"Certificate with serial %ld (0x%lX) "
"revoked per CRL from issuer %s",
serial, serial, cp);
X509_NAME *name;
char *dn;
- if (s->loglevel < APLOG_DEBUG) {
+ if (!APLOGdebug(s)) {
return;
}
char buf[SSL_SESSION_ID_STRING_LEN];
char timeout_str[56] = {'\0'};
- if (s->loglevel < APLOG_DEBUG) {
+ if (!APLOGdebug(s)) {
return;
}
}
s = mySrvFromConn(c);
- if (s && s->loglevel >= APLOG_DEBUG) {
+ if (s && APLOGdebug(s)) {
log_tracing_state(ssl, c, s, where, rc);
}
}
* (and the first vhost doesn't use APLOG_DEBUG), then
* we need to set that callback here.
*/
- if (s->loglevel >= APLOG_DEBUG) {
+ if (APLOGdebug(s)) {
BIO_set_callback(SSL_get_rbio(ssl), ssl_io_data_cb);
BIO_set_callback_arg(SSL_get_rbio(ssl), (void *)ssl);
}