summaryrefslogtreecommitdiffstats
path: root/lib/libssl/tls13_handshake.c
diff options
context:
space:
mode:
authorbeck <beck@openbsd.org>2020-01-25 06:37:30 +0000
committerbeck <beck@openbsd.org>2020-01-25 06:37:30 +0000
commit96b47d8c7c274673ccb6791c9e34b3e7ed796ddb (patch)
treebc0d58994c0f4019b23c2277b6f19f8fefedef4c /lib/libssl/tls13_handshake.c
parenttweaks sleeping for an mbuf so it's more mpsafe. (diff)
downloadwireguard-openbsd-96b47d8c7c274673ccb6791c9e34b3e7ed796ddb.tar.xz
wireguard-openbsd-96b47d8c7c274673ccb6791c9e34b3e7ed796ddb.zip
Correct backwards test so that we may accept a certificate requst
from the server. ok jsing@
Diffstat (limited to 'lib/libssl/tls13_handshake.c')
-rw-r--r--lib/libssl/tls13_handshake.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libssl/tls13_handshake.c b/lib/libssl/tls13_handshake.c
index 29a22225f7b..ed70ec1f4b7 100644
--- a/lib/libssl/tls13_handshake.c
+++ b/lib/libssl/tls13_handshake.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tls13_handshake.c,v 1.44 2020/01/24 08:21:24 jsing Exp $ */
+/* $OpenBSD: tls13_handshake.c,v 1.45 2020/01/25 06:37:30 beck Exp $ */
/*
* Copyright (c) 2018-2019 Theo Buehler <tb@openbsd.org>
* Copyright (c) 2019 Joel Sing <jsing@openbsd.org>
@@ -406,8 +406,8 @@ tls13_handshake_recv_action(struct tls13_ctx *ctx,
*/
msg_type = tls13_handshake_msg_type(ctx->hs_msg);
if (msg_type != action->handshake_type &&
- (msg_type != TLS13_MT_CERTIFICATE ||
- action->handshake_type != TLS13_MT_CERTIFICATE_REQUEST))
+ (msg_type != TLS13_MT_CERTIFICATE_REQUEST ||
+ action->handshake_type != TLS13_MT_CERTIFICATE))
return tls13_send_alert(ctx->rl, SSL_AD_UNEXPECTED_MESSAGE);
if (!tls13_handshake_msg_content(ctx->hs_msg, &cbs))