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. --- 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 v0.9.2