aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikos Mavrogiannopoulos 2007-12-09 10:19:00 +0000
committerGravatar Nokis Mavrogiannopoulos 2007-12-09 10:19:00 +0000
commitae4a2b0a8b10e98f2c74163f33a27be704ded09f (patch)
tree9eb1ba8f37c7be33069defa13d6f42106a740fc7 /src
parent5e81262428771649043a728ac813370aaa47a46b (diff)
Corrected bug which did not allow the TLS session cache to be used.
Diffstat (limited to 'src')
-rw-r--r--src/gnutls_hooks.c6
1 files changed, 2 insertions, 4 deletions
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)
133 if (ret < 0) 133 if (ret < 0)
134 return ret; 134 return ret;
135 135
136 /* allow separate caches per virtual host. Actually allowing the same is a
137 * bad idea, since they might have different security requirements.
138 */
139 mgs_cache_session_init(ctxt);
140 136
141 return 0; 137 return 0;
142} 138}
@@ -591,6 +587,8 @@ static mgs_handle_t *create_gnutls_handle(apr_pool_t * pool, conn_rec * c)
591 gnutls_handshake_set_post_client_hello_function(ctxt->session, 587 gnutls_handshake_set_post_client_hello_function(ctxt->session,
592 mgs_select_virtual_server_cb); 588 mgs_select_virtual_server_cb);
593 589
590 mgs_cache_session_init(ctxt);
591
594 return ctxt; 592 return ctxt;
595} 593}
596 594