aboutsummaryrefslogtreecommitdiffstats
path: root/src/gnutls_hooks.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
commit36c02797b672ed5ed937c798bd97aeeb7394f038 (patch)
tree681d5b28d283c5ea2d8248d16d5ce23dc27df165 /src/gnutls_hooks.c
parent47e0ccc66d3ed9112140ae9ec75394d7fa4bf5e1 (diff)
Added option to turn on/off session tickets.
Diffstat (limited to 'src/gnutls_hooks.c')
-rw-r--r--src/gnutls_hooks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gnutls_hooks.c b/src/gnutls_hooks.c
index 2130cb0..032e6f3 100644
--- a/src/gnutls_hooks.c
+++ b/src/gnutls_hooks.c
@@ -673,7 +673,7 @@ static mgs_handle_t *create_gnutls_handle(apr_pool_t * pool, conn_rec * c)
673 ctxt->output_length = 0; 673 ctxt->output_length = 0;
674 674
675 gnutls_init(&ctxt->session, GNUTLS_SERVER); 675 gnutls_init(&ctxt->session, GNUTLS_SERVER);
676 if (session_ticket_key.data != NULL) 676 if (session_ticket_key.data != NULL && ctxt->sc->tickets != 0)
677 gnutls_session_ticket_enable_server(ctxt->session, &session_ticket_key); 677 gnutls_session_ticket_enable_server(ctxt->session, &session_ticket_key);
678 678
679 /* because we don't set any default priorities here (we set later at 679 /* because we don't set any default priorities here (we set later at