diff options
author | 2020-01-22 02:39:45 +0000 | |
---|---|---|
committer | 2020-01-22 02:39:45 +0000 | |
commit | 94ab85a598073c320cefadec70776fec88add26b (patch) | |
tree | 8b868602630fb3b50b81e1d36945bc40f4f6f9aa /lib/libssl/tls13_handshake.c | |
parent | Hook up the TLSv1.3 legacy shutdown code. (diff) | |
download | wireguard-openbsd-94ab85a598073c320cefadec70776fec88add26b.tar.xz wireguard-openbsd-94ab85a598073c320cefadec70776fec88add26b.zip |
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
Diffstat (limited to 'lib/libssl/tls13_handshake.c')
-rw-r--r-- | lib/libssl/tls13_handshake.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <tb@openbsd.org> * Copyright (c) 2019 Joel Sing <jsing@openbsd.org> @@ -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] = { |