Changeset c6572ec in mod_gnutls


Ignore:
Timestamp:
Jun 8, 2016, 5:58:24 PM (3 years ago)
Author:
Thomas Klute <thomas2.klute@…>
Branches:
debian/master, debian/stretch-backports, master, upstream
Children:
d18afb8
Parents:
c55902b
Message:

Apply default cache timeout to OCSP responses without nextUpdate

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_ocsp.c

    rc55902b rc6572ec  
    392392        return APR_EGENERAL;
    393393    }
    394     /* if expiry is zero, the response does not contain a nextUpdate
    395      * field */
    396     /* TODO: If a refresh time is configured, use it as timeout. With
    397      * the current code the response will expire at next cache
    398      * expiration check. */
     394    /* If expiry is zero, the response does not contain a nextUpdate
     395     * field. Use the default cache timeout. */
    399396    if (expiry == 0)
    400         expiry = apr_time_now();
     397        expiry = apr_time_now() + sc->cache_timeout;
    401398
    402399    /* TODO: configurable refresh independent of expiration */
Note: See TracChangeset for help on using the changeset viewer.