summaryrefslogtreecommitdiff
path: root/lib/libssl/tls13_client.c
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2020-01-26 06:55:18 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2020-01-26 06:55:18 +0000
commit1764ec69c5722430bb0e6295317bcaa56322fe19 (patch)
tree79790c7d6f174c614fedebb8183d544e00a4a310 /lib/libssl/tls13_client.c
parent2332d97ba126d0eeb4a0d7b0dd86b34e80d1cf29 (diff)
When switching back to a legacy client or server, ensure we reset the
handshake function pointer. Fixes an isssue found by jca@ with OpenVPN. ok beck@ tb@
Diffstat (limited to 'lib/libssl/tls13_client.c')
-rw-r--r--lib/libssl/tls13_client.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libssl/tls13_client.c b/lib/libssl/tls13_client.c
index 74a4a4db69f..f75f605ace0 100644
--- a/lib/libssl/tls13_client.c
+++ b/lib/libssl/tls13_client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tls13_client.c,v 1.36 2020/01/26 03:38:24 beck Exp $ */
+/* $OpenBSD: tls13_client.c,v 1.37 2020/01/26 06:55:17 jsing Exp $ */
/*
* Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org>
*
@@ -105,6 +105,7 @@ tls13_use_legacy_client(struct tls13_ctx *ctx)
CBS cbs;
s->method = tls_legacy_client_method();
+ s->internal->handshake_func = s->method->internal->ssl_connect;
s->client_version = s->version = s->method->internal->max_version;
if (!ssl3_setup_init_buffer(s))