diff options
author | beck <> | 2020-01-25 06:37:30 +0000 |
---|---|---|
committer | beck <> | 2020-01-25 06:37:30 +0000 |
commit | 8ef6d5699390cd817ba24c3f8f8a670d68b744af (patch) | |
tree | ba007a27a3b1623cf834df9b3c5acf3fe34b9583 /src/lib | |
parent | 6050b22f41089412331fbc4210b0c467391b82e3 (diff) | |
download | openbsd-8ef6d5699390cd817ba24c3f8f8a670d68b744af.tar.gz openbsd-8ef6d5699390cd817ba24c3f8f8a670d68b744af.tar.bz2 openbsd-8ef6d5699390cd817ba24c3f8f8a670d68b744af.zip |
Correct backwards test so that we may accept a certificate requst
from the server.
ok jsing@
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libssl/tls13_handshake.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libssl/tls13_handshake.c b/src/lib/libssl/tls13_handshake.c index 29a22225f7..ed70ec1f4b 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.44 2020/01/24 08:21:24 jsing Exp $ */ | 1 | /* $OpenBSD: tls13_handshake.c,v 1.45 2020/01/25 06:37:30 beck 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> |
@@ -406,8 +406,8 @@ tls13_handshake_recv_action(struct tls13_ctx *ctx, | |||
406 | */ | 406 | */ |
407 | msg_type = tls13_handshake_msg_type(ctx->hs_msg); | 407 | msg_type = tls13_handshake_msg_type(ctx->hs_msg); |
408 | if (msg_type != action->handshake_type && | 408 | if (msg_type != action->handshake_type && |
409 | (msg_type != TLS13_MT_CERTIFICATE || | 409 | (msg_type != TLS13_MT_CERTIFICATE_REQUEST || |
410 | action->handshake_type != TLS13_MT_CERTIFICATE_REQUEST)) | 410 | action->handshake_type != TLS13_MT_CERTIFICATE)) |
411 | return tls13_send_alert(ctx->rl, SSL_AD_UNEXPECTED_MESSAGE); | 411 | return tls13_send_alert(ctx->rl, SSL_AD_UNEXPECTED_MESSAGE); |
412 | 412 | ||
413 | if (!tls13_handshake_msg_content(ctx->hs_msg, &cbs)) | 413 | if (!tls13_handshake_msg_content(ctx->hs_msg, &cbs)) |