Changeset 9418c1e in mod_gnutls for src/gnutls_ocsp.c


Ignore:
Timestamp:
Jan 11, 2020, 10:57:16 AM (8 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
master, proxy-ticket
Children:
98b37a1
Parents:
06dcf89
Message:

mgs_cache_ocsp_failure: Require explicit struct mgs_ocsp_data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_ocsp.c

    r06dcf89 r9418c1e  
    779779 *
    780780 * @param s the server for which an OCSP request failed
     781 *
     782 * @param req_data OCSP data structure for the certificate that could
     783 * not be checked
     784 *
    781785 * @param timeout lifetime of the cache entry
    782786 */
    783 static void mgs_cache_ocsp_failure(server_rec *s, apr_interval_time_t timeout)
     787static void mgs_cache_ocsp_failure(server_rec *s,
     788                                   struct mgs_ocsp_data *req_data,
     789                                   apr_interval_time_t timeout)
    784790{
    785791    mgs_srvconf_rec *sc = (mgs_srvconf_rec *)
     
    794800
    795801    int r = mgs_cache_store(sc->ocsp_cache, s,
    796                             sc->ocsp->fingerprint, dummy, expiry);
     802                            req_data->fingerprint, dummy, expiry);
    797803    if (r != 0)
    798804        ap_log_error(APLOG_MARK, APLOG_ERR, APR_EGENERAL, s,
     
    889895        /* cache failure to rate limit retries */
    890896        mgs_cache_ocsp_failure(ctxt->c->base_server,
     897                               ctxt->sc->ocsp,
    891898                               ctxt->sc->ocsp_failure_timeout);
    892899        apr_global_mutex_unlock(sc->ocsp_mutex);
     
    11171124                         "Caching OCSP request failure for %s:%d.",
    11181125                         server->server_hostname, server->addrs->host_port);
    1119             mgs_cache_ocsp_failure(server, sc->ocsp_failure_timeout * 2);
     1126            mgs_cache_ocsp_failure(server, sc->ocsp,
     1127                                   sc->ocsp_failure_timeout * 2);
    11201128        }
    11211129    }
Note: See TracChangeset for help on using the changeset viewer.