aboutsummaryrefslogtreecommitdiffstats
path: root/src/gnutls_config.c
diff options
context:
space:
mode:
authorGravatar Nikos Mavrogiannopoulos 2010-09-24 08:51:52 +0200
committerGravatar Nikos Mavrogiannopoulos 2010-09-24 08:51:52 +0200
commitd8c7cf4677d744f0e203d30cca4e69d84cf4b7b4 (patch)
tree3d442c9ac0dd88d8aaaef8cb2e03a7d79170a0f2 /src/gnutls_config.c
parent771ca63efe669f8b0a3ffaeba1f3be7e3688b35f (diff)
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.
Diffstat (limited to 'src/gnutls_config.c')
-rw-r--r--src/gnutls_config.c6
1 files changed, 3 insertions, 3 deletions
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,
348 } else if (strcasecmp("dbm", type) == 0) { 348 } else if (strcasecmp("dbm", type) == 0) {
349 sc->cache_type = mgs_cache_dbm; 349 sc->cache_type = mgs_cache_dbm;
350 } 350 }
351 else if (strcasecmp("sdbm", type) == 0) { 351 else if (strcasecmp("gdbm", type) == 0) {
352 sc->cache_type = mgs_cache_sdbm; 352 sc->cache_type = mgs_cache_gdbm;
353 } 353 }
354#if HAVE_APR_MEMCACHE 354#if HAVE_APR_MEMCACHE
355 else if (strcasecmp("memcache", type) == 0) { 355 else if (strcasecmp("memcache", type) == 0) {
@@ -360,7 +360,7 @@ const char *mgs_set_cache(cmd_parms * parms, void *dummy,
360 return "Invalid Type for GnuTLSCache!"; 360 return "Invalid Type for GnuTLSCache!";
361 } 361 }
362 362
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) {
364 sc->cache_config = ap_server_root_relative(parms->pool, arg); 364 sc->cache_config = ap_server_root_relative(parms->pool, arg);
365 } else { 365 } else {
366 sc->cache_config = apr_pstrdup(parms->pool, arg); 366 sc->cache_config = apr_pstrdup(parms->pool, arg);