Correct and enhance the behaviour of "internal" session caching as it
authorGeoff Thorpe <geoff@openssl.org>
Tue, 29 Oct 2002 00:16:56 +0000 (00:16 +0000)
committerGeoff Thorpe <geoff@openssl.org>
Tue, 29 Oct 2002 00:16:56 +0000 (00:16 +0000)
commit7c99da56cfb2e4f8b0063dc6068378d6521dcfa4
tree4f39eac1f5195c353acb82d79fdb36a4743700e8
parent311d8d84bdef3baab1c6dcd99fc59f88566b5e42
Correct and enhance the behaviour of "internal" session caching as it
relates to SSL_CTX flags and the use of "external" session caching. The
existing flag, "SSL_SESS_CACHE_NO_INTERNAL_LOOKUP" remains but is
supplemented with a complimentary flag, "SSL_SESS_CACHE_NO_INTERNAL_STORE".
The bitwise OR of the two flags is also defined as
"SSL_SESS_CACHE_NO_INTERNAL" and is the flag that should be used by most
applications wanting to implement session caching *entirely* by its own
provided callbacks. As the documented behaviour contradicted actual
behaviour up until recently, and since that point behaviour has itself been
inconsistent anyway, this change should not introduce any compatibility
problems. I've adjusted the relevant documentation to elaborate about how
this works.

Kudos to "Nadav Har'El" <nyh@math.technion.ac.il> for diagnosing these
anomalies and testing this patch for correctness.

PR: 311
CHANGES
doc/ssl/SSL_CTX_add_session.pod
doc/ssl/SSL_CTX_set_session_cache_mode.pod
ssl/ssl.h
ssl/ssl_lib.c
ssl/ssl_sess.c