diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gnutls_hooks.c | 6 |
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 | ||