Changeset 32f2e60 in mod_gnutls for src/gnutls_cache.c


Ignore:
Timestamp:
Dec 9, 2004, 2:52:31 AM (15 years ago)
Author:
Paul Querna <chip@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, master, msva, upstream
Children:
76bd3bf
Parents:
0314deb
Message:

fixes and stuff that i should of already committed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_cache.c

    r0314deb r32f2e60  
    2222 *
    2323 */
     24/*
     25#include "memcache.h"
    2426
    25 #include "libmemcache/memcache.h"
     27int mod_gnutls_cache_init()
     28{
     29  return 0;
     30}
     31static int cache_store((void* baton, gnutls_datum_t key, gnutls_datum_t data)
     32{
     33    mc_set(struct memcache *mc,
     34           key->data, key->size,
     35           data->data, data->size,
     36           3600, 0);
     37  return 0;
     38}
     39
     40static int cache_fetch(void* baton, gnutls_datum_t key)
     41{
     42    mod_gnutls_handle_t *ctxt = baton;
     43  return 0;
     44}
     45
     46static int cache_delete(void* baton, gnutls_datum_t key)
     47{
     48    mod_gnutls_handle_t *ctxt = baton;
     49  return 0;
     50}
     51
     52int mod_gnutls_cache_session_init(mod_gnutls_handle_t *ctxt)
     53{
     54    gnutls_db_set_cache_expiration
     55    gnutls_db_set_retrieve_function(session, cache_fetch);
     56    gnutls_db_set_remove_function(session, cache_delete);
     57    gnutls_db_set_store_function(session, cache_store);
     58    gnutls_db_set_ptr(session, NULL);
     59  return 0;
     60}
     61*/
Note: See TracChangeset for help on using the changeset viewer.