summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2007-12-09 10:19:00 (GMT)
committer Nokis Mavrogiannopoulos <nmav@gnutls.org>2007-12-09 10:19:00 (GMT)
commitae4a2b0a8b10e98f2c74163f33a27be704ded09f (patch)
tree9eb1ba8f37c7be33069defa13d6f42106a740fc7
parent5e81262428771649043a728ac813370aaa47a46b (diff)
Corrected bug which did not allow the TLS session cache to be used.
-rw-r--r--NEWS2
-rw-r--r--src/gnutls_hooks.c6
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 @@
2 2
3- Added support for sending a certificate chain. 3- Added support for sending a certificate chain.
4 4
5- Corrected bug which did not allow the TLS session cache to be used.
6
5** Version 0.4.1 (2007-12-03) 7** Version 0.4.1 (2007-12-03)
6 8
7- Added support for subject alternative names in certificates. 9- 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)
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