diff options
author | jsing <> | 2020-05-10 16:56:11 +0000 |
---|---|---|
committer | jsing <> | 2020-05-10 16:56:11 +0000 |
commit | bce4aa62bab1463452a4ce16efa8902c7f37b85b (patch) | |
tree | c31ffbaae4cfd09bf31b64685c65004c13420403 /src/lib/libssl/tls13_legacy.c | |
parent | 88fc0831cf60da58a9722ed343974b71b39bb0be (diff) | |
download | openbsd-bce4aa62bab1463452a4ce16efa8902c7f37b85b.tar.gz openbsd-bce4aa62bab1463452a4ce16efa8902c7f37b85b.tar.bz2 openbsd-bce4aa62bab1463452a4ce16efa8902c7f37b85b.zip |
Provide alert defines for TLSv1.3 and use in the TLSv1.3 code.
Rather than using a mess of SSL_AL_*, SSL_AD_*, SSL3_AD_* and TLS1_AD_*
defines, provide our own TLS13_ALERT_* defines and use those. This also
provides the alerts that are new to TLSv1.3.
ok beck@
Diffstat (limited to 'src/lib/libssl/tls13_legacy.c')
-rw-r--r-- | src/lib/libssl/tls13_legacy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/tls13_legacy.c b/src/lib/libssl/tls13_legacy.c index 1e18a8258c..18e66cbe33 100644 --- a/src/lib/libssl/tls13_legacy.c +++ b/src/lib/libssl/tls13_legacy.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tls13_legacy.c,v 1.3 2020/04/28 20:37:22 jsing Exp $ */ | 1 | /* $OpenBSD: tls13_legacy.c,v 1.4 2020/05/10 16:56:11 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -486,7 +486,7 @@ tls13_legacy_shutdown(SSL *ssl) | |||
486 | /* Send close notify. */ | 486 | /* Send close notify. */ |
487 | if (!ctx->close_notify_sent) { | 487 | if (!ctx->close_notify_sent) { |
488 | ctx->close_notify_sent = 1; | 488 | ctx->close_notify_sent = 1; |
489 | if ((ret = tls13_send_alert(ctx->rl, SSL_AD_CLOSE_NOTIFY)) < 0) | 489 | if ((ret = tls13_send_alert(ctx->rl, TLS13_ALERT_CLOSE_NOTIFY)) < 0) |
490 | return tls13_legacy_return_code(ssl, ret); | 490 | return tls13_legacy_return_code(ssl, ret); |
491 | } | 491 | } |
492 | 492 | ||