diff options
Diffstat (limited to 'src/lib/libssl/tls13_handshake.c')
-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 1d8e78b927..a09659bffc 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.60 2020/05/10 14:22:51 jsing Exp $ */ | 1 | /* $OpenBSD: tls13_handshake.c,v 1.61 2020/05/10 16:56:11 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> |
@@ -469,7 +469,7 @@ tls13_handshake_recv_action(struct tls13_ctx *ctx, | |||
469 | if (msg_type != action->handshake_type && | 469 | if (msg_type != action->handshake_type && |
470 | (msg_type != TLS13_MT_CERTIFICATE || | 470 | (msg_type != TLS13_MT_CERTIFICATE || |
471 | action->handshake_type != TLS13_MT_CERTIFICATE_REQUEST)) | 471 | action->handshake_type != TLS13_MT_CERTIFICATE_REQUEST)) |
472 | return tls13_send_alert(ctx->rl, SSL_AD_UNEXPECTED_MESSAGE); | 472 | return tls13_send_alert(ctx->rl, TLS13_ALERT_UNEXPECTED_MESSAGE); |
473 | 473 | ||
474 | if (!tls13_handshake_msg_content(ctx->hs_msg, &cbs)) | 474 | if (!tls13_handshake_msg_content(ctx->hs_msg, &cbs)) |
475 | return TLS13_IO_FAILURE; | 475 | return TLS13_IO_FAILURE; |
@@ -479,7 +479,7 @@ tls13_handshake_recv_action(struct tls13_ctx *ctx, | |||
479 | if (CBS_len(&cbs) != 0) { | 479 | if (CBS_len(&cbs) != 0) { |
480 | tls13_set_errorx(ctx, TLS13_ERR_TRAILING_DATA, 0, | 480 | tls13_set_errorx(ctx, TLS13_ERR_TRAILING_DATA, 0, |
481 | "trailing data in handshake message", NULL); | 481 | "trailing data in handshake message", NULL); |
482 | ctx->alert = SSL_AD_DECODE_ERROR; | 482 | ctx->alert = TLS13_ALERT_DECODE_ERROR; |
483 | } else { | 483 | } else { |
484 | ret = TLS13_IO_SUCCESS; | 484 | ret = TLS13_IO_SUCCESS; |
485 | } | 485 | } |