Changeset b94aee2 in mod_gnutls for include/mod_gnutls.h.in


Ignore:
Timestamp:
Apr 28, 2018, 5:52:56 PM (3 years ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
asyncio, 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
  • include/mod_gnutls.h.in

    r2f949bc rb94aee2  
    5757
    5858
    59 /* mod_gnutls Cache Types */
    60 typedef enum {
    61         /* No Cache */
    62     mgs_cache_none,
    63         /* Use Old Berkley DB */
    64     mgs_cache_dbm,
    65         /* Use Gnu's version of Berkley DB */
    66     mgs_cache_gdbm,
    67         /* Use Memcache */
    68     mgs_cache_memcache,
    69     mgs_cache_shmcb,
    70     mgs_cache_unset
    71 } mgs_cache_e;
    72 
    7359/* Internal cache data, defined in gnutls_cache.h */
    7460typedef struct mgs_cache* mgs_cache_t;
     
    131117    int cache_timeout;
    132118        /* Chose Cache Type */
    133     mgs_cache_e cache_type;
     119    const char* cache_type;
     120    /* Enable cache */
     121    unsigned char cache_enable : 2;
    134122    const char* cache_config;
    135123    /* Internal cache data */
     
    185173        /* Client Certificate Verification Method */
    186174    mgs_client_verification_method_e client_verify_method;
    187         /* Last Cache timestamp */
    188     apr_time_t last_cache_check;
    189175
    190176    /* Enable OCSP stapling */
Note: See TracChangeset for help on using the changeset viewer.