From 94ab85a598073c320cefadec70776fec88add26b Mon Sep 17 00:00:00 2001 From: tb Date: Wed, 22 Jan 2020 02:39:45 +0000 Subject: The legacy_record_version must be set to TLS1_2_VERSION except in the ClientHello where it may be set to TLS1_VERSION. Use the minimal supported version to decide whether we choose to do so or not. Use a sent hook to set it back TLS1_2_VERSION right after the ClientHello message is on the wire. ok beck jsing --- lib/libssl/tls13_handshake.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/libssl/tls13_handshake.c') diff --git a/lib/libssl/tls13_handshake.c b/lib/libssl/tls13_handshake.c index 48a01d3ca4e..ca36f879b44 100644 --- a/lib/libssl/tls13_handshake.c +++ b/lib/libssl/tls13_handshake.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tls13_handshake.c,v 1.38 2020/01/21 03:40:05 beck Exp $ */ +/* $OpenBSD: tls13_handshake.c,v 1.39 2020/01/22 02:39:45 tb Exp $ */ /* * Copyright (c) 2018-2019 Theo Buehler * Copyright (c) 2019 Joel Sing @@ -53,6 +53,7 @@ struct tls13_handshake_action state_machine[] = { .handshake_type = TLS13_MT_CLIENT_HELLO, .sender = TLS13_HS_CLIENT, .send = tls13_client_hello_send, + .sent = tls13_client_hello_sent, .recv = tls13_client_hello_recv, }, [CLIENT_HELLO_RETRY] = { -- cgit v1.2.3-59-g8ed1b