diff options
author | 2019-11-17 00:10:47 +0000 | |
---|---|---|
committer | 2019-11-17 00:10:47 +0000 | |
commit | bafb24a960a6ee7e695732579c995868f787e111 (patch) | |
tree | 27a8838732b1cc0438e12fc985686f9658fcd1a6 /lib/libssl/tls13_internal.h | |
parent | tweak debug message (diff) | |
download | wireguard-openbsd-bafb24a960a6ee7e695732579c995868f787e111.tar.xz wireguard-openbsd-bafb24a960a6ee7e695732579c995868f787e111.zip |
Separate the callbacks for recieved and completed post handshake messages
from the record layer
ok jsing@
Diffstat (limited to 'lib/libssl/tls13_internal.h')
-rw-r--r-- | lib/libssl/tls13_internal.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/libssl/tls13_internal.h b/lib/libssl/tls13_internal.h index 1d7a7eb6996..7288ca3448d 100644 --- a/lib/libssl/tls13_internal.h +++ b/lib/libssl/tls13_internal.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tls13_internal.h,v 1.28 2019/04/05 20:23:38 tb Exp $ */ +/* $OpenBSD: tls13_internal.h,v 1.29 2019/11/17 00:10:47 beck Exp $ */ /* * Copyright (c) 2018 Bob Beck <beck@openbsd.org> * Copyright (c) 2018 Theo Buehler <tb@openbsd.org> @@ -38,7 +38,8 @@ __BEGIN_HIDDEN_DECLS #define TLS13_IO_USE_LEGACY -4 typedef void (*tls13_alert_cb)(uint8_t _alert_desc, void *_cb_arg); -typedef int (*tls13_post_handshake_cb)(void *_cb_arg); +typedef int (*tls13_post_handshake_recv_cb)(void *_cb_arg, CBS *cbs); +typedef int (*tls13_post_handshake_sent_cb)(void *_cb_arg); typedef ssize_t (*tls13_read_cb)(void *_buf, size_t _buflen, void *_cb_arg); typedef ssize_t (*tls13_write_cb)(const void *_buf, size_t _buflen, void *_cb_arg); @@ -107,7 +108,8 @@ struct tls13_record_layer; struct tls13_record_layer *tls13_record_layer_new(tls13_read_cb wire_read, tls13_write_cb wire_write, tls13_alert_cb alert_cb, - tls13_post_handshake_cb post_handshake_cb, void *cb_arg); + tls13_post_handshake_recv_cb post_handshake_recv_cb, + tls13_post_handshake_sent_cb post_handshake_sent_cb, void *cb_arg); void tls13_record_layer_free(struct tls13_record_layer *rl); void tls13_record_layer_set_aead(struct tls13_record_layer *rl, const EVP_AEAD *aead); |