]> granicus.if.org Git - apache/commitdiff
Merge 1610311 from trunk:
authorJoe Orton <jorton@apache.org>
Mon, 14 Jul 2014 12:29:22 +0000 (12:29 +0000)
committerJoe Orton <jorton@apache.org>
Mon, 14 Jul 2014 12:29:22 +0000 (12:29 +0000)
Extend the scope of SSLSessionCacheTimeout to sessions
resumed by TLS session resumption (RFC 5077).

Submitted by: rjung
Reviewed by: rjung, ylavic, jorton

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1610399 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
docs/manual/mod/mod_ssl.xml
modules/ssl/ssl_engine_init.c

diff --git a/CHANGES b/CHANGES
index de28fc55afa911e651e6428698f70aa9b7bb3356..8aedf75d1ea50c84ad56e30875e21f933e337ae6 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -2,6 +2,9 @@
 
 Changes with Apache 2.4.10
 
+  *) mod_ssl: Extend the scope of SSLSessionCacheTimeout to sessions
+     resumed by TLS session resumption (RFC 5077). [Rainer Jung]
+
   *) mod_deflate: Don't fail when flushing inflated data to the user-agent
      and that coincides with the end of stream ("Zlib error flushing inflate
      buffer"). PR 56196. [Christoph Fausak <christoph fausak glueckkanja.com>]
index 799e77404fb5cb1b41c4731f6122534e34a1b1d0..f60f5bcaa640f25bca7464338fe704f99fe66f47 100644 (file)
@@ -505,7 +505,8 @@ in the Session Cache</description>
 <usage>
 <p>
 This directive sets the timeout in seconds for the information stored in the
-global/inter-process SSL Session Cache and the OpenSSL internal memory cache.
+global/inter-process SSL Session Cache, the OpenSSL internal memory cache and
+for sessions resumed by TLS session resumption (RFC 5077).
 It can be set as low as 15 for testing, but should be set to higher
 values like 300 in real life.</p>
 <example><title>Example</title>
index d47317e63328fba2c4b413eedc124b9e0f47d52d..ef2185d26c079a3609b074322b8146348875c517 100644 (file)
@@ -1443,6 +1443,10 @@ static apr_status_t ssl_init_server_ctx(server_rec *s,
     }
 #endif
 
+    SSL_CTX_set_timeout(sc->server->ssl_ctx,
+                        sc->session_cache_timeout == UNSET ?
+                        SSL_SESSION_CACHE_TIMEOUT : sc->session_cache_timeout);
+
     return APR_SUCCESS;
 }