Changeset 5e81262 in mod_gnutls for src/gnutls_hooks.c


Ignore:
Timestamp:
Dec 8, 2007, 11:07:12 AM (13 years ago)
Author:
Nokis Mavrogiannopoulos <nmav@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, master, msva, proxy-ticket, upstream
Children:
ae4a2b0
Parents:
3b83e00
git-author:
Nikos Mavrogiannopoulos <nmav@…> (12/08/07 11:07:12)
git-committer:
Nokis Mavrogiannopoulos <nmav@…> (12/08/07 11:07:12)
Message:

Added support for sending more than one certificate.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_hooks.c

    r3b83e00 r5e81262  
    149149
    150150    ret->type = GNUTLS_CRT_X509;
    151     ret->ncerts = 1;
     151    ret->ncerts = ctxt->sc->certs_x509_num;
    152152    ret->deinit_all = 0;
    153153
    154     ret->cert.x509 = &ctxt->sc->cert_x509;
     154    ret->cert.x509 = ctxt->sc->certs_x509;
    155155    ret->key.x509 = ctxt->sc->privkey_x509;
    156156    return 0;
     
    335335            }
    336336
    337             if (sc->cert_x509 == NULL
     337            if (sc->certs_x509[0] == NULL
    338338                && sc->enabled == GNUTLS_ENABLED_TRUE) {
    339339                ap_log_error(APLOG_MARK, APLOG_EMERG, 0, s,
     
    354354
    355355            if (sc->enabled == GNUTLS_ENABLED_TRUE) {
    356                 rv = read_crt_cn(s, p, sc->cert_x509, &sc->cert_cn);
     356                rv = read_crt_cn(s, p, sc->certs_x509[0], &sc->cert_cn);
    357357                if (rv < 0) {
    358358                    ap_log_error(APLOG_MARK, APLOG_EMERG, 0, s,
     
    687687    apr_table_setn(env, "SSL_SESSION_ID", apr_pstrdup(r->pool, tmp));
    688688
    689     mgs_add_common_cert_vars(r, ctxt->sc->cert_x509, 0,
     689    mgs_add_common_cert_vars(r, ctxt->sc->certs_x509[0], 0,
    690690                             ctxt->sc->export_certificates_enabled);
    691691
Note: See TracChangeset for help on using the changeset viewer.