Changeset 316bd8c in mod_gnutls for src/mod_gnutls.c


Ignore:
Timestamp:
Apr 21, 2005, 9:29:13 PM (15 years ago)
Author:
Paul Querna <chip@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, master, msva, upstream
Children:
46b85d8
Parents:
e924ddd
Message:
  • remove more debug logging.
  • fix a crash by changing the certificate structure *after* starting the handshake.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mod_gnutls.c

    re924ddd r316bd8c  
    295295static void mod_gnutls_changed_servers(mod_gnutls_handle_t *ctxt)
    296296{
    297     gnutls_credentials_set(ctxt->session, GNUTLS_CRD_CERTIFICATE, ctxt->sc->certs);
    298297    gnutls_certificate_server_set_request(ctxt->session, ctxt->sc->client_verify_mode);
    299298}
     
    480479
    481480    mod_gnutls_cache_session_init(ctxt);
     481   
     482    gnutls_credentials_set(ctxt->session, GNUTLS_CRD_CERTIFICATE, ctxt->sc->certs);
    482483
    483484    gnutls_certificate_server_set_retrieve_function(sc->certs, cert_retrieve_fn);
    484 
     485   
    485486    mod_gnutls_changed_servers(ctxt);
    486487    return ctxt;
     
    839840    if (dc->client_verify_mode == GNUTLS_CERT_IGNORE) {
    840841        ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r,
    841                       "GnuTLS: Ignoring Client Certificate!");
     842                      "GnuTLS: Directory set to Ignore Client Certificate!");
    842843        return DECLINED;
    843844    }
     
    856857    }
    857858    else if (ctxt->sc->client_verify_mode == GNUTLS_CERT_IGNORE) {
     859#if MOD_GNUTLS_DEBUG
    858860        ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r,
    859861                      "GnuTLS: Peer is set to IGNORE");
     862#endif
    860863        return DECLINED;
    861864    }
Note: See TracChangeset for help on using the changeset viewer.