diff options
author | jsing <> | 2020-01-25 15:06:17 +0000 |
---|---|---|
committer | jsing <> | 2020-01-25 15:06:17 +0000 |
commit | 4eaa47375c2b8f164edaae326474b972e0e4e277 (patch) | |
tree | 83baf73ddecbf2f4a2c0fd19bc3d2be023b0e335 /src | |
parent | 749a01f8891ca00e2929f61e3401dfe34c0035e5 (diff) | |
download | openbsd-4eaa47375c2b8f164edaae326474b972e0e4e277.tar.gz openbsd-4eaa47375c2b8f164edaae326474b972e0e4e277.tar.bz2 openbsd-4eaa47375c2b8f164edaae326474b972e0e4e277.zip |
Revert change to certificate request check from r1.45.
This code was correct, it was the entry in the table that was incorrect.
ok beck@
Diffstat (limited to 'src')
-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 7d150930d9..d194688f71 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.47 2020/01/25 13:21:52 beck Exp $ */ | 1 | /* $OpenBSD: tls13_handshake.c,v 1.48 2020/01/25 15:06:17 jsing 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> |
@@ -413,8 +413,8 @@ tls13_handshake_recv_action(struct tls13_ctx *ctx, | |||
413 | */ | 413 | */ |
414 | msg_type = tls13_handshake_msg_type(ctx->hs_msg); | 414 | msg_type = tls13_handshake_msg_type(ctx->hs_msg); |
415 | if (msg_type != action->handshake_type && | 415 | if (msg_type != action->handshake_type && |
416 | (msg_type != TLS13_MT_CERTIFICATE_REQUEST || | 416 | (msg_type != TLS13_MT_CERTIFICATE || |
417 | action->handshake_type != TLS13_MT_CERTIFICATE)) | 417 | action->handshake_type != TLS13_MT_CERTIFICATE_REQUEST)) |
418 | return tls13_send_alert(ctx->rl, SSL_AD_UNEXPECTED_MESSAGE); | 418 | return tls13_send_alert(ctx->rl, SSL_AD_UNEXPECTED_MESSAGE); |
419 | 419 | ||
420 | if (!tls13_handshake_msg_content(ctx->hs_msg, &cbs)) | 420 | if (!tls13_handshake_msg_content(ctx->hs_msg, &cbs)) |