Changeset 7511bfa in mod_gnutls for src/gnutls_hooks.c


Ignore:
Timestamp:
Jun 3, 2016, 3:09:41 PM (4 years ago)
Author:
Thomas Klute <thomas2.klute@…>
Branches:
debian/master, debian/stretch-backports, master, upstream
Children:
379a297
Parents:
8913410
Message:

Use ap_log_cerror() instead of ap_log_error() where reasonable

Probably old code from when ap_log_cerror() did not exist.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_hooks.c

    r8913410 r7511bfa  
    619619}
    620620
    621 static int vhost_cb(void *baton, conn_rec * conn __attribute__((unused)), server_rec * s) {
     621static int vhost_cb(void *baton, conn_rec *conn, server_rec * s)
     622{
    622623    mgs_srvconf_rec *tsc;
    623624    vhost_cb_rec *x = baton;
     
    637638        ret = gnutls_x509_crt_check_hostname(tsc->certs_x509_crt_chain[0], s->server_hostname);
    638639        if (0 == ret)
    639             ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, s,
    640                          "GnuTLS: the certificate doesn't match requested hostname "
    641                          "'%s'", s->server_hostname);
     640            ap_log_cerror(APLOG_MARK, APLOG_DEBUG, 0, conn,
     641                          "GnuTLS: the certificate doesn't match requested "
     642                          "hostname '%s'", s->server_hostname);
    642643    } else {
    643         ap_log_error(APLOG_MARK, APLOG_INFO, 0, s,
    644                      "GnuTLS: SNI request for '%s' but no X.509 certs available at all",
    645                      s->server_hostname);
     644        ap_log_cerror(APLOG_MARK, APLOG_INFO, 0, conn,
     645                      "GnuTLS: SNI request for '%s' but no X.509 certs "
     646                      "available at all",
     647                      s->server_hostname);
    646648    }
    647649        return check_server_aliases(x, s, tsc);
     
    671673
    672674    if (sni_type != GNUTLS_NAME_DNS) {
    673         ap_log_error(APLOG_MARK, APLOG_CRIT, 0,
    674                 ctxt->c->base_server,
    675                 "GnuTLS: Unknown type '%d' for SNI: "
    676                 "'%s'", sni_type, sni_name);
     675        ap_log_cerror(APLOG_MARK, APLOG_CRIT, 0, ctxt->c,
     676                      "GnuTLS: Unknown type '%d' for SNI: '%s'",
     677                      sni_type, sni_name);
    677678        return NULL;
    678679    }
Note: See TracChangeset for help on using the changeset viewer.