aboutsummaryrefslogtreecommitdiffstats
path: root/src/gnutls_config.c
diff options
context:
space:
mode:
authorGravatar Nikos Mavrogiannopoulos 2010-07-01 03:09:56 +0200
committerGravatar Nikos Mavrogiannopoulos 2010-07-01 03:09:56 +0200
commitae233c2446cd31680dd53616ab8882427e861ebc (patch)
tree681d5b28d283c5ea2d8248d16d5ce23dc27df165 /src/gnutls_config.c
parent7b3e5de119e3a435c062d48295a227a3ff673f24 (diff)
Added option to turn on/off session tickets.
Diffstat (limited to 'src/gnutls_config.c')
-rw-r--r--src/gnutls_config.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/gnutls_config.c b/src/gnutls_config.c
index d75e785..ca26a2d 100644
--- a/src/gnutls_config.c
+++ b/src/gnutls_config.c
@@ -285,6 +285,22 @@ const char *mgs_set_pgpkey_file(cmd_parms * parms, void *dummy,
285 return NULL; 285 return NULL;
286} 286}
287 287
288const char *mgs_set_tickets(cmd_parms * parms, void *dummy,
289 const char *arg)
290{
291 mgs_srvconf_rec *sc =
292 (mgs_srvconf_rec *) ap_get_module_config(parms->server->
293 module_config,
294 &gnutls_module);
295
296 sc->tickets = 0;
297 if (strcasecmp("on", arg) == 0) {
298 sc->tickets = 1;
299 }
300
301 return NULL;
302}
303
288 304
289#ifdef ENABLE_SRP 305#ifdef ENABLE_SRP
290 306