From ada595bf91598989bfe89b4f3291739f4d848c5f Mon Sep 17 00:00:00 2001 From: jsing <> Date: Tue, 14 Jul 2020 18:47:50 +0000 Subject: Revert the TLSv1.3 version switching fix/hack. This is no longer necessary since the TLS_method() now supports TLSv1.3. Reverts r1.211 of ssl_lib.c. ok beck@ inoguchi@ tb@ --- src/lib/libssl/ssl_lib.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/lib') diff --git a/src/lib/libssl/ssl_lib.c b/src/lib/libssl/ssl_lib.c index b93a851507..5fd705c93a 100644 --- a/src/lib/libssl/ssl_lib.c +++ b/src/lib/libssl/ssl_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_lib.c,v 1.218 2020/07/07 19:31:11 jsing Exp $ */ +/* $OpenBSD: ssl_lib.c,v 1.219 2020/07/14 18:47:50 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -2226,15 +2226,6 @@ SSL_set_ssl_method(SSL *s, const SSL_METHOD *meth) ret = s->method->internal->ssl_new(s); } - /* - * XXX - reset the client max version to that of the incoming - * method, otherwise a caller that uses a TLS_method() and then - * sets with TLS_client_method() cannot do TLSv1.3. - */ - if (meth->internal->max_version == TLS1_3_VERSION && - meth->internal->ssl_connect != NULL) - s->internal->max_version = meth->internal->max_version; - if (conn == 1) s->internal->handshake_func = meth->internal->ssl_connect; else if (conn == 0) -- cgit v1.2.3-55-g6feb