Changeset e809fb3 in mod_gnutls for src/gnutls_cache.h


Ignore:
Timestamp:
Jun 9, 2016, 7:52:23 PM (3 years ago)
Author:
Thomas Klute <thomas2.klute@…>
Branches:
debian/master, debian/stretch-backports, master, upstream
Children:
aa68232
Parents:
3e22b82
Message:

Use generic cache functions for OCSP response caching

With this, OCSP stapling works with all supported cache types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_cache.h

    r3e22b82 re809fb3  
    5252
    5353/*
    54  * EXPERIMENTAL: Make DBM cache available for OCSP caching. To be
    55  * replaced with properly configurable caching that can also use
    56  * memcached later.
     54 * Generic object cache functions, used for OCSP caching
    5755 */
    58 #include <apr_dbm.h>
    59 int dbm_cache_store(server_rec *s, gnutls_datum_t key,
    60                     gnutls_datum_t data, apr_time_t expiry);
    61 gnutls_datum_t dbm_cache_fetch(mgs_handle_t *ctxt, gnutls_datum_t key);
    62 int mc_cache_store_generic(server_rec *s, gnutls_datum_t key,
    63                            gnutls_datum_t data, apr_time_t expiry);
    64 gnutls_datum_t mc_cache_fetch_generic(mgs_handle_t *ctxt, gnutls_datum_t key);
     56typedef int (*cache_store_func)(server_rec *s, gnutls_datum_t key,
     57                                gnutls_datum_t data, apr_time_t expiry);
     58typedef gnutls_datum_t (*cache_fetch_func)(mgs_handle_t *ctxt,
     59                                           gnutls_datum_t key);
     60struct mgs_cache {
     61    cache_store_func store;
     62    cache_fetch_func fetch;
     63};
    6564
    6665#endif /** __MOD_GNUTLS_CACHE_H__ */
Note: See TracChangeset for help on using the changeset viewer.