Changeset b94aee2 in mod_gnutls for src/gnutls_hooks.c


Ignore:
Timestamp:
Apr 28, 2018, 5:52:56 PM (3 years ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
debian/master, master, proxy-ticket
Children:
a314ec9
Parents:
2f949bc
Message:

Remove internal cache type enum

The cache type is now transparently passed to ap_lookup_provider(), so
mod_gnutls does not need to manage available cache types. The new
server variable sc->cache_enable exists to track whether the cache
should be used at all.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_hooks.c

    r2f949bc rb94aee2  
    629629        sc = (mgs_srvconf_rec *) ap_get_module_config(s->module_config, &gnutls_module);
    630630        sc->cache_type = sc_base->cache_type;
     631        sc->cache_enable = sc_base->cache_enable;
    631632        sc->cache_config = sc_base->cache_config;
    632633        sc->cache_timeout = sc_base->cache_timeout;
     
    774775    }
    775776
    776     if (sc->cache_type != mgs_cache_none) {
     777    if (sc->cache_enable) {
    777778        rv = mgs_cache_child_init(p, s, sc);
    778779        if (rv != APR_SUCCESS) {
Note: See TracChangeset for help on using the changeset viewer.