diff options
author | tb <> | 2020-01-22 02:39:45 +0000 |
---|---|---|
committer | tb <> | 2020-01-22 02:39:45 +0000 |
commit | e841f2e08f8bcc62f31051874b1b2a491665e7c6 (patch) | |
tree | e3b7e917f86898f6c4c09cc95fd58779cf635a2f /src/lib/libssl/tls13_handshake.c | |
parent | e42a9af6bede5e8c30f66cf9013f858a29caed3e (diff) | |
download | openbsd-e841f2e08f8bcc62f31051874b1b2a491665e7c6.tar.gz openbsd-e841f2e08f8bcc62f31051874b1b2a491665e7c6.tar.bz2 openbsd-e841f2e08f8bcc62f31051874b1b2a491665e7c6.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 'src/lib/libssl/tls13_handshake.c')
-rw-r--r-- | src/lib/libssl/tls13_handshake.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libssl/tls13_handshake.c b/src/lib/libssl/tls13_handshake.c index 48a01d3ca4..ca36f879b4 100644 --- a/src/lib/libssl/tls13_handshake.c +++ b/src/lib/libssl/tls13_handshake.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tls13_handshake.c,v 1.38 2020/01/21 03:40:05 beck Exp $ */ | 1 | /* $OpenBSD: tls13_handshake.c,v 1.39 2020/01/22 02:39:45 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2018-2019 Theo Buehler <tb@openbsd.org> | 3 | * Copyright (c) 2018-2019 Theo Buehler <tb@openbsd.org> |
4 | * Copyright (c) 2019 Joel Sing <jsing@openbsd.org> | 4 | * Copyright (c) 2019 Joel Sing <jsing@openbsd.org> |
@@ -53,6 +53,7 @@ struct tls13_handshake_action state_machine[] = { | |||
53 | .handshake_type = TLS13_MT_CLIENT_HELLO, | 53 | .handshake_type = TLS13_MT_CLIENT_HELLO, |
54 | .sender = TLS13_HS_CLIENT, | 54 | .sender = TLS13_HS_CLIENT, |
55 | .send = tls13_client_hello_send, | 55 | .send = tls13_client_hello_send, |
56 | .sent = tls13_client_hello_sent, | ||
56 | .recv = tls13_client_hello_recv, | 57 | .recv = tls13_client_hello_recv, |
57 | }, | 58 | }, |
58 | [CLIENT_HELLO_RETRY] = { | 59 | [CLIENT_HELLO_RETRY] = { |