From ae4a2b0a8b10e98f2c74163f33a27be704ded09f Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Sun, 09 Dec 2007 10:19:00 +0000 Subject: Corrected bug which did not allow the TLS session cache to be used. --- (limited to 'src/gnutls_hooks.c') 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 v0.9.2