Changeset a85de63 in mod_gnutls for src/gnutls_ocsp.c


Ignore:
Timestamp:
Apr 19, 2018, 3:09:04 PM (2 years ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
debian/master, master, proxy-ticket
Children:
103cafa
Parents:
c34a68b
Message:

Make cache_fetch_func work without a connection context

This is necessary to do cache fetches without a client connection,
e.g. while doing asynchronous OCSP updates.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_ocsp.c

    rc34a68b ra85de63  
    11/*
    2  *  Copyright 2016 Fiona Klute
     2 *  Copyright 2016-2018 Fiona Klute
    33 *
    44 *  Licensed under the Apache License, Version 2.0 (the "License");
     
    772772    }
    773773
    774     *ocsp_response = sc->cache->fetch(ctxt,
    775                                       sc->ocsp->fingerprint);
     774    *ocsp_response = ctxt->sc->cache->fetch(ctxt->c->base_server,
     775                                            ctxt->sc->ocsp->fingerprint,
     776                                            ctxt->c->pool);
    776777    if (ocsp_response->size == 0)
    777778    {
     
    808809         * moment there's no good way to integrate that with the
    809810         * Apache Mutex directive. */
    810         *ocsp_response = sc->cache->fetch(ctxt,
    811                                           sc->ocsp->fingerprint);
     811        *ocsp_response = ctxt->sc->cache->fetch(ctxt->c->base_server,
     812                                                ctxt->sc->ocsp->fingerprint,
     813                                                ctxt->c->pool);
    812814        if (ocsp_response->size > 0)
    813815        {
     
    837839
    838840    /* retry reading from cache */
    839     *ocsp_response = sc->cache->fetch(ctxt,
    840                                       sc->ocsp->fingerprint);
     841    *ocsp_response = ctxt->sc->cache->fetch(ctxt->c->base_server,
     842                                            ctxt->sc->ocsp->fingerprint,
     843                                            ctxt->c->pool);
    841844    if (ocsp_response->size == 0)
    842845    {
Note: See TracChangeset for help on using the changeset viewer.