diff options
author | tb <> | 2021-06-28 15:35:14 +0000 |
---|---|---|
committer | tb <> | 2021-06-28 15:35:14 +0000 |
commit | f4c8b4bc678b2bc3d0623dda286734a44d1c68c4 (patch) | |
tree | c0257daa63684c6253b0de3c2ffb4971d42ad429 /src/lib/libssl/tls13_internal.h | |
parent | 2e0db0f6bf28097969ada6dbef640972cdbadf4c (diff) | |
download | openbsd-f4c8b4bc678b2bc3d0623dda286734a44d1c68c4.tar.gz openbsd-f4c8b4bc678b2bc3d0623dda286734a44d1c68c4.tar.bz2 openbsd-f4c8b4bc678b2bc3d0623dda286734a44d1c68c4.zip |
Expand info callback support for TLSv1.3
During the TLSv1.3 handshake, update the legacy state and call the
info callback at the appropriate moment. This is done by mapping
the TLSv1.3 states to the states in the old state machine whenever
that is possible. The callbacks are called at the beginning and end
of the handshake, and just before the state machine advances.
This should fix a periodic warning in logs of tor relays about a
variable that wasn't set although it should have been.
input/ok jsing, ok inoguchi (early version)
Diffstat (limited to 'src/lib/libssl/tls13_internal.h')
-rw-r--r-- | src/lib/libssl/tls13_internal.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libssl/tls13_internal.h b/src/lib/libssl/tls13_internal.h index 973661acc9..30ef7dd931 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.89 2021/03/21 18:36:34 jsing Exp $ */ | 1 | /* $OpenBSD: tls13_internal.h,v 1.90 2021/06/28 15:35:14 tb 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> |
@@ -81,6 +81,8 @@ __BEGIN_HIDDEN_DECLS | |||
81 | 81 | ||
82 | #define TLS13_INFO_HANDSHAKE_STARTED SSL_CB_HANDSHAKE_START | 82 | #define TLS13_INFO_HANDSHAKE_STARTED SSL_CB_HANDSHAKE_START |
83 | #define TLS13_INFO_HANDSHAKE_COMPLETED SSL_CB_HANDSHAKE_DONE | 83 | #define TLS13_INFO_HANDSHAKE_COMPLETED SSL_CB_HANDSHAKE_DONE |
84 | #define TLS13_INFO_ACCEPT_LOOP SSL_CB_ACCEPT_LOOP | ||
85 | #define TLS13_INFO_CONNECT_LOOP SSL_CB_CONNECT_LOOP | ||
84 | 86 | ||
85 | typedef void (*tls13_alert_cb)(uint8_t _alert_desc, void *_cb_arg); | 87 | typedef void (*tls13_alert_cb)(uint8_t _alert_desc, void *_cb_arg); |
86 | typedef ssize_t (*tls13_phh_recv_cb)(void *_cb_arg, CBS *_cbs); | 88 | typedef ssize_t (*tls13_phh_recv_cb)(void *_cb_arg, CBS *_cbs); |