Changeset 6b4136c in mod_gnutls for src/gnutls_cache.h


Ignore:
Timestamp:
Jun 5, 2016, 3:42:32 PM (4 years ago)
Author:
Thomas Klute <thomas2.klute@…>
Branches:
debian/master, debian/stretch-backports, master, upstream
Children:
4bf4ce2
Parents:
2f932fa
git-author:
Thomas Klute <thomas2.klute@…> (06/05/16 08:38:49)
git-committer:
Thomas Klute <thomas2.klute@…> (06/05/16 15:42:32)
Message:

Store OCSP responses in DBM cache before use

This is not proper caching yet (the cached response is updated on
every use), but it shows the approach to be used. Memcached support to
be added once DBM works properly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_cache.h

    r2f932fa r6b4136c  
    6161char *mgs_time2sz(time_t t, char *str, int strsize);
    6262
     63/*
     64 * EXPERIMENTAL: Make DBM cache available for OCSP caching. To be
     65 * replaced with properly configurable caching that can also use
     66 * memcached later.
     67 */
     68#include <apr_dbm.h>
     69int dbm_cache_store(server_rec *s, gnutls_datum_t key,
     70                    gnutls_datum_t data, apr_time_t expiry);
     71gnutls_datum_t dbm_cache_fetch(mgs_handle_t *ctxt, gnutls_datum_t key);
     72
    6373#endif /** __MOD_GNUTLS_CACHE_H__ */
Note: See TracChangeset for help on using the changeset viewer.