diff options
author | Nikos Mavrogiannopoulos | 2010-07-01 03:09:56 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos | 2010-07-01 03:09:56 +0200 |
commit | 36c02797b672ed5ed937c798bd97aeeb7394f038 (patch) | |
tree | 681d5b28d283c5ea2d8248d16d5ce23dc27df165 /src/gnutls_config.c | |
parent | 47e0ccc66d3ed9112140ae9ec75394d7fa4bf5e1 (diff) |
Added option to turn on/off session tickets.
Diffstat (limited to 'src/gnutls_config.c')
-rw-r--r-- | src/gnutls_config.c | 16 |
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 | ||
288 | const 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 | ||