From d8c7cf4677d744f0e203d30cca4e69d84cf4b7b4 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Fri, 24 Sep 2010 06:51:52 +0000 Subject: 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. --- (limited to 'src/gnutls_config.c') diff --git a/src/gnutls_config.c b/src/gnutls_config.c index 4bb523f..ff8ec33 100644 --- a/src/gnutls_config.c +++ b/src/gnutls_config.c @@ -348,8 +348,8 @@ const char *mgs_set_cache(cmd_parms * parms, void *dummy, } else if (strcasecmp("dbm", type) == 0) { sc->cache_type = mgs_cache_dbm; } - else if (strcasecmp("sdbm", type) == 0) { - sc->cache_type = mgs_cache_sdbm; + else if (strcasecmp("gdbm", type) == 0) { + sc->cache_type = mgs_cache_gdbm; } #if HAVE_APR_MEMCACHE else if (strcasecmp("memcache", type) == 0) { @@ -360,7 +360,7 @@ const char *mgs_set_cache(cmd_parms * parms, void *dummy, return "Invalid Type for GnuTLSCache!"; } - if (sc->cache_type == mgs_cache_dbm || sc->cache_type == mgs_cache_sdbm) { + if (sc->cache_type == mgs_cache_dbm || sc->cache_type == mgs_cache_gdbm) { sc->cache_config = ap_server_root_relative(parms->pool, arg); } else { sc->cache_config = apr_pstrdup(parms->pool, arg); -- cgit v0.9.2