diff options
| author | 2020-01-26 06:55:17 +0000 | |
|---|---|---|
| committer | 2020-01-26 06:55:17 +0000 | |
| commit | 637b1bc4fcac2d7415b664b1eeab801f1c1d5d6c (patch) | |
| tree | c6b927ba3c8a53e0eb419c4607ea3ea88ce739a5 /lib/libssl/tls13_server.c | |
| parent | Fix basement bug where record layer would not correctly deal with (diff) | |
| download | wireguard-openbsd-637b1bc4fcac2d7415b664b1eeab801f1c1d5d6c.tar.xz wireguard-openbsd-637b1bc4fcac2d7415b664b1eeab801f1c1d5d6c.zip | |
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_server.c')
| -rw-r--r-- | lib/libssl/tls13_server.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libssl/tls13_server.c b/lib/libssl/tls13_server.c index e5e029c9980..41b4d2b24ec 100644 --- a/lib/libssl/tls13_server.c +++ b/lib/libssl/tls13_server.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tls13_server.c,v 1.19 2020/01/26 03:55:22 beck Exp $ */ +/* $OpenBSD: tls13_server.c,v 1.20 2020/01/26 06:55:17 jsing Exp $ */ /* * Copyright (c) 2019, 2020 Joel Sing <jsing@openbsd.org> * Copyright (c) 2020 Bob Beck <beck@openbsd.org> @@ -96,6 +96,7 @@ tls13_use_legacy_server(struct tls13_ctx *ctx) CBS cbs; s->method = tls_legacy_server_method(); + s->internal->handshake_func = s->method->internal->ssl_accept; s->client_version = s->version = s->method->internal->max_version; s->server = 1; |
