Changeset d8c7cf4 in mod_gnutls


Ignore:
Timestamp:
Sep 24, 2010, 2:51:52 AM (9 years ago)
Author:
Nikos Mavrogiannopoulos <nmav@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, master, msva, upstream
Children:
be90561
Parents:
771ca63
Message:

Only allow two options for DB. Berkeley DB and gdbm. The other options
such as SDBM had serious limitations. Thanks to Hardy Griech for pointing out.

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • NEWS

    r771ca63 rd8c7cf4  
    44
    55- The GnuTLSCache variable now can be given the specific
    6   option "sdbm" instead of "dbm". "dbm" will use the default
    7   dbm type of libapr while sdbm will force sdbm to be used.
     6  option "gdbm" instead of "dbm". "dbm" will use the berkeley
     7  db type of libapr while gdbm will force gdbm to be used.
     8  sdbm is no longer being used due to serious limitations.
    89
    910** Version 0.5.8 (2010-08-18)
  • include/mod_gnutls.h.in

    r771ca63 rd8c7cf4  
    6464    mgs_cache_none,
    6565    mgs_cache_dbm,
    66     mgs_cache_sdbm,
     66    mgs_cache_gdbm,
    6767#if HAVE_APR_MEMCACHE
    6868    mgs_cache_memcache
  • src/gnutls_cache.c

    r771ca63 rd8c7cf4  
    297297const char* db_type(mgs_srvconf_rec * sc)
    298298{
    299         if (sc->cache_type == mgs_cache_sdbm)
    300                 return "sdbm";
     299        if (sc->cache_type == mgs_cache_gdbm)
     300                return "gdbm";
    301301        else
    302                 return "default";
     302                return "db";
    303303}
    304304
     
    556556                                 mgs_srvconf_rec *sc)
    557557{
    558     if (sc->cache_type == mgs_cache_dbm || sc->cache_type == mgs_cache_sdbm) {
     558    if (sc->cache_type == mgs_cache_dbm || sc->cache_type == mgs_cache_gdbm) {
    559559        return dbm_cache_post_config(p, s, sc);
    560560    }
     
    565565                                mgs_srvconf_rec *sc)
    566566{
    567     if (sc->cache_type == mgs_cache_dbm || sc->cache_type == mgs_cache_sdbm) {
     567    if (sc->cache_type == mgs_cache_dbm || sc->cache_type == mgs_cache_gdbm) {
    568568        return 0;
    569569    }
     
    580580int mgs_cache_session_init(mgs_handle_t *ctxt)
    581581{
    582     if (ctxt->sc->cache_type == mgs_cache_dbm || ctxt->sc->cache_type == mgs_cache_sdbm) {
     582    if (ctxt->sc->cache_type == mgs_cache_dbm || ctxt->sc->cache_type == mgs_cache_gdbm) {
    583583        gnutls_db_set_retrieve_function(ctxt->session, dbm_cache_fetch);
    584584        gnutls_db_set_remove_function(ctxt->session, dbm_cache_delete);
  • src/gnutls_config.c

    r771ca63 rd8c7cf4  
    349349        sc->cache_type = mgs_cache_dbm;
    350350    }
    351     else if (strcasecmp("sdbm", type) == 0) {
    352         sc->cache_type = mgs_cache_sdbm;
     351    else if (strcasecmp("gdbm", type) == 0) {
     352        sc->cache_type = mgs_cache_gdbm;
    353353    }
    354354#if HAVE_APR_MEMCACHE
     
    361361    }
    362362
    363     if (sc->cache_type == mgs_cache_dbm || sc->cache_type == mgs_cache_sdbm) {
     363    if (sc->cache_type == mgs_cache_dbm || sc->cache_type == mgs_cache_gdbm) {
    364364        sc->cache_config = ap_server_root_relative(parms->pool, arg);
    365365    } else {
Note: See TracChangeset for help on using the changeset viewer.