From e2ba0d06fd1edd80ca76bb2279b76944b6e6a901 Mon Sep 17 00:00:00 2001 From: Nokis Mavrogiannopoulos Date: Sun, 9 Dec 2007 10:19:00 +0000 Subject: Corrected bug which did not allow the TLS session cache to be used. --- NEWS | 2 ++ src/gnutls_hooks.c | 6 ++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/NEWS b/NEWS index 29bf060..bb2df34 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,8 @@ - Added support for sending a certificate chain. +- Corrected bug which did not allow the TLS session cache to be used. + ** Version 0.4.1 (2007-12-03) - Added support for subject alternative names in certificates. diff --git a/src/gnutls_hooks.c b/src/gnutls_hooks.c index 025e4e1..15b66fa 100644 --- a/src/gnutls_hooks.c +++ b/src/gnutls_hooks.c @@ -133,10 +133,6 @@ static int mgs_select_virtual_server_cb(gnutls_session_t session) if (ret < 0) return ret; - /* allow separate caches per virtual host. Actually allowing the same is a - * bad idea, since they might have different security requirements. - */ - mgs_cache_session_init(ctxt); return 0; } @@ -591,6 +587,8 @@ static mgs_handle_t *create_gnutls_handle(apr_pool_t * pool, conn_rec * c) gnutls_handshake_set_post_client_hello_function(ctxt->session, mgs_select_virtual_server_cb); + mgs_cache_session_init(ctxt); + return ctxt; } -- cgit