diff options
author | jsing <> | 2019-03-17 15:13:23 +0000 |
---|---|---|
committer | jsing <> | 2019-03-17 15:13:23 +0000 |
commit | 053bde557c5f57a91664558a9e44f1368c444de5 (patch) | |
tree | 18e703669702d4597d0c1cd1ae14e0b0d203bcef /src/lib/libssl/tls13_internal.h | |
parent | a8451e4ce9acd74a5da3bf7e569a617a26cf3a25 (diff) | |
download | openbsd-053bde557c5f57a91664558a9e44f1368c444de5.tar.gz openbsd-053bde557c5f57a91664558a9e44f1368c444de5.tar.bz2 openbsd-053bde557c5f57a91664558a9e44f1368c444de5.zip |
Remove the alert level from the TLSv1.3 alert callback.
In TLSv1.3 the alert level is effectively meaningless and the record layer
has already checked that it is appropriate. As such, drop it from the alert
callback.
ok tb@
Diffstat (limited to 'src/lib/libssl/tls13_internal.h')
-rw-r--r-- | src/lib/libssl/tls13_internal.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libssl/tls13_internal.h b/src/lib/libssl/tls13_internal.h index f3cccc14a6..1fe8f547a1 100644 --- a/src/lib/libssl/tls13_internal.h +++ b/src/lib/libssl/tls13_internal.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tls13_internal.h,v 1.25 2019/02/28 17:56:43 jsing Exp $ */ | 1 | /* $OpenBSD: tls13_internal.h,v 1.26 2019/03/17 15:13:23 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2018 Bob Beck <beck@openbsd.org> | 3 | * Copyright (c) 2018 Bob Beck <beck@openbsd.org> |
4 | * Copyright (c) 2018 Theo Buehler <tb@openbsd.org> | 4 | * Copyright (c) 2018 Theo Buehler <tb@openbsd.org> |
@@ -36,8 +36,7 @@ __BEGIN_HIDDEN_DECLS | |||
36 | #define TLS13_IO_WANT_POLLIN -2 | 36 | #define TLS13_IO_WANT_POLLIN -2 |
37 | #define TLS13_IO_WANT_POLLOUT -3 | 37 | #define TLS13_IO_WANT_POLLOUT -3 |
38 | 38 | ||
39 | typedef void (*tls13_alert_cb)(uint8_t _alert_level, uint8_t _alert_desc, | 39 | typedef void (*tls13_alert_cb)(uint8_t _alert_desc, void *_cb_arg); |
40 | void *_cb_arg); | ||
41 | typedef int (*tls13_post_handshake_cb)(void *_cb_arg); | 40 | typedef int (*tls13_post_handshake_cb)(void *_cb_arg); |
42 | typedef ssize_t (*tls13_read_cb)(void *_buf, size_t _buflen, void *_cb_arg); | 41 | typedef ssize_t (*tls13_read_cb)(void *_buf, size_t _buflen, void *_cb_arg); |
43 | typedef ssize_t (*tls13_write_cb)(const void *_buf, size_t _buflen, | 42 | typedef ssize_t (*tls13_write_cb)(const void *_buf, size_t _buflen, |