Changeset a8374f7 in mod_gnutls for src/gnutls_ocsp.c


Ignore:
Timestamp:
Jan 11, 2020, 9:51:53 AM (8 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
master, proxy-ticket
Children:
bdd10be
Parents:
20a3915
Message:

Keep a reference to the certificate with OCSP data

When implementing multi-staple there will be a bunch of OCSP data
structures per virtual host. This will make it possible to handle
these without complex algorithms to connect certificate index with
OCSP data.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_ocsp.c

    r20a3915 ra8374f7  
    11161116    mgs_ocsp_data_t ocsp = apr_palloc(pconf, sizeof(struct mgs_ocsp_data));
    11171117
    1118     ocsp->uri = mgs_cert_get_ocsp_uri(pconf,
    1119                                       sc->certs_x509_crt_chain[0]);
     1118    ocsp->cert = sc->certs_x509_crt_chain[0];
     1119    ocsp->uri = mgs_cert_get_ocsp_uri(pconf, ocsp->cert);
    11201120    if (ocsp->uri == NULL && sc->ocsp_response_file == NULL)
    11211121        return "No OCSP URI in the certificate nor a GnuTLSOCSPResponseFile "
Note: See TracChangeset for help on using the changeset viewer.