aboutsummaryrefslogtreecommitdiffstats
path: root/src/gnutls_config.c
diff options
context:
space:
mode:
authorGravatar Nikos Mavrogiannopoulos 2010-11-16 15:05:00 +0100
committerGravatar Nikos Mavrogiannopoulos 2010-11-16 15:05:30 +0100
commitb59327cde81cddced2a35742bd203c242669d6dc (patch)
treefb1c4df3e8baa6853cb550911eb175f97d662e08 /src/gnutls_config.c
parente02dd8c03ce5b66c81a47830eebe73a21ce71002 (diff)
GnuTLSCache can now take a single argument (none).
Diffstat (limited to 'src/gnutls_config.c')
-rw-r--r--src/gnutls_config.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gnutls_config.c b/src/gnutls_config.c
index fc3e166..517dbfb 100644
--- a/src/gnutls_config.c
+++ b/src/gnutls_config.c
@@ -370,6 +370,8 @@ const char *mgs_set_cache(cmd_parms * parms, void *dummy,
370 370
371 if (strcasecmp("none", type) == 0) { 371 if (strcasecmp("none", type) == 0) {
372 sc->cache_type = mgs_cache_none; 372 sc->cache_type = mgs_cache_none;
373 sc->cache_config = NULL;
374 return NULL;
373 } else if (strcasecmp("dbm", type) == 0) { 375 } else if (strcasecmp("dbm", type) == 0) {
374 sc->cache_type = mgs_cache_dbm; 376 sc->cache_type = mgs_cache_dbm;
375 } else if (strcasecmp("gdbm", type) == 0) { 377 } else if (strcasecmp("gdbm", type) == 0) {
@@ -383,6 +385,9 @@ const char *mgs_set_cache(cmd_parms * parms, void *dummy,
383 else { 385 else {
384 return "Invalid Type for GnuTLSCache!"; 386 return "Invalid Type for GnuTLSCache!";
385 } 387 }
388
389 if (arg == NULL)
390 return "Invalid argument 2 for GnuTLSCache!";
386 391
387 if (sc->cache_type == mgs_cache_dbm 392 if (sc->cache_type == mgs_cache_dbm
388 || sc->cache_type == mgs_cache_gdbm) { 393 || sc->cache_type == mgs_cache_gdbm) {