1 Description: disable session caching in the server (as opposed to in the
2 config, which would be way harder to get right) to address
3 https://security-tracker.debian.org/tracker/CVE-2017-9148
4 Author: Michael Stapelberg <stapelberg@debian.org>
6 Last-Update: 2017-05-30
12 @@ -369,7 +369,7 @@ tls_session_t *tls_new_session(TALLOC_CT
14 * FIXME: Also do it every N sessions?
16 - if (conf->session_cache_enable &&
17 + if (/*conf->session_cache_enable*/0 &&
18 ((conf->session_last_flushed + ((int)conf->session_timeout * 1800)) <= request->timestamp)){
19 RDEBUG2("Flushing SSL sessions (of #%ld)", SSL_CTX_sess_number(conf->ctx));
21 @@ -463,7 +463,7 @@ tls_session_t *tls_new_session(TALLOC_CT
22 state->mtu = vp->vp_integer;
25 - if (conf->session_cache_enable) state->allow_session_resumption = true; /* otherwise it's false */
26 + if (/*conf->session_cache_enable*/0) state->allow_session_resumption = true; /* otherwise it's false */
30 @@ -2675,7 +2675,7 @@ post_ca:
32 * Callbacks, etc. for session resumption.
34 - if (conf->session_cache_enable) {
35 + if (/*conf->session_cache_enable*/0) {
37 * Cache sessions on disk if requested.
39 @@ -2745,7 +2745,7 @@ post_ca:
41 * Setup session caching
43 - if (conf->session_cache_enable) {
44 + if (/*conf->session_cache_enable*/0) {
46 * Create a unique context Id per EAP-TLS configuration.