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. --- src/gnutls_hooks.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src') 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