summaryrefslogtreecommitdiff
path: root/src/lib/libssl/tls13_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/tls13_internal.h')
-rw-r--r--src/lib/libssl/tls13_internal.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/lib/libssl/tls13_internal.h b/src/lib/libssl/tls13_internal.h
index f4b17bdf25..68e695e53a 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.101 2022/07/24 14:28:16 jsing Exp $ */ 1/* $OpenBSD: tls13_internal.h,v 1.102 2024/01/27 14:23:51 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>
@@ -87,7 +87,8 @@ __BEGIN_HIDDEN_DECLS
87#define TLS13_INFO_ACCEPT_EXIT SSL_CB_ACCEPT_EXIT 87#define TLS13_INFO_ACCEPT_EXIT SSL_CB_ACCEPT_EXIT
88#define TLS13_INFO_CONNECT_EXIT SSL_CB_CONNECT_EXIT 88#define TLS13_INFO_CONNECT_EXIT SSL_CB_CONNECT_EXIT
89 89
90typedef void (*tls13_alert_cb)(uint8_t _alert_desc, void *_cb_arg); 90typedef void (*tls13_alert_cb)(uint8_t _alert_level, uint8_t _alert_desc,
91 void *_cb_arg);
91typedef ssize_t (*tls13_phh_recv_cb)(void *_cb_arg); 92typedef ssize_t (*tls13_phh_recv_cb)(void *_cb_arg);
92typedef void (*tls13_phh_sent_cb)(void *_cb_arg); 93typedef void (*tls13_phh_sent_cb)(void *_cb_arg);
93typedef void (*tls13_handshake_message_cb)(void *_cb_arg); 94typedef void (*tls13_handshake_message_cb)(void *_cb_arg);
@@ -291,6 +292,8 @@ struct tls13_ctx {
291 int phh_count; 292 int phh_count;
292 time_t phh_last_seen; 293 time_t phh_last_seen;
293 294
295 tls13_alert_cb alert_sent_cb;
296 tls13_alert_cb alert_recv_cb;
294 tls13_handshake_message_cb handshake_message_sent_cb; 297 tls13_handshake_message_cb handshake_message_sent_cb;
295 tls13_handshake_message_cb handshake_message_recv_cb; 298 tls13_handshake_message_cb handshake_message_recv_cb;
296 tls13_info_cb info_cb; 299 tls13_info_cb info_cb;
@@ -309,8 +312,8 @@ void tls13_ctx_free(struct tls13_ctx *ctx);
309const EVP_AEAD *tls13_cipher_aead(const SSL_CIPHER *cipher); 312const EVP_AEAD *tls13_cipher_aead(const SSL_CIPHER *cipher);
310const EVP_MD *tls13_cipher_hash(const SSL_CIPHER *cipher); 313const EVP_MD *tls13_cipher_hash(const SSL_CIPHER *cipher);
311 314
312void tls13_alert_received_cb(uint8_t alert_desc, void *arg); 315void tls13_alert_received_cb(uint8_t alert_level, uint8_t alert_desc, void *arg);
313void tls13_alert_sent_cb(uint8_t alert_desc, void *arg); 316void tls13_alert_sent_cb(uint8_t alert_level, uint8_t alert_desc, void *arg);
314ssize_t tls13_phh_received_cb(void *cb_arg); 317ssize_t tls13_phh_received_cb(void *cb_arg);
315void tls13_phh_done_cb(void *cb_arg); 318void tls13_phh_done_cb(void *cb_arg);
316 319