]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix SSL_clear() in TLSv1.3
authorMatt Caswell <matt@openssl.org>
Tue, 18 Jul 2017 10:18:31 +0000 (11:18 +0100)
committerMatt Caswell <matt@openssl.org>
Tue, 18 Jul 2017 16:35:34 +0000 (17:35 +0100)
commit59ff3f07dc88bca5cec1b28c651c4d398ffd7126
tree208e4f7d58fde7904a942df0a1d7db177bb505e2
parent00848ea842f911dac4e10bb39a08bb4b6de9e66a
Fix SSL_clear() in TLSv1.3

SSL_clear() does not reset the SSL_METHOD if a session already exists in
the SSL object. However, TLSv1.3 does not have an externally visible
version fixed method (only an internal one). The state machine assumes
that we are always starting from a version flexible method for TLSv1.3.
The simplest solution is to just fix SSL_clear() to always reset the method
if it is using the internal TLSv1.3 version fixed method.

Reviewed-by: Ben Kaduk <kaduk@mit.edu>
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/3954)
ssl/ssl_lib.c