Changeset 6b4136c in mod_gnutls for src/gnutls_cache.c


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.c

    r2f932fa r6b4136c  
    395395}
    396396
    397 static gnutls_datum_t dbm_cache_fetch(mgs_handle_t *ctxt, gnutls_datum_t key)
     397gnutls_datum_t dbm_cache_fetch(mgs_handle_t *ctxt, gnutls_datum_t key)
    398398{
    399399    gnutls_datum_t data = {NULL, 0};
     
    459459}
    460460
    461 static int dbm_cache_store(server_rec *s, gnutls_datum_t key,
    462                            gnutls_datum_t data, apr_time_t expiry)
     461int dbm_cache_store(server_rec *s, gnutls_datum_t key,
     462                    gnutls_datum_t data, apr_time_t expiry)
    463463{
    464464    mgs_srvconf_rec *sc = (mgs_srvconf_rec *)
Note: See TracChangeset for help on using the changeset viewer.