diff options
author | beck <> | 2019-11-17 00:10:47 +0000 |
---|---|---|
committer | beck <> | 2019-11-17 00:10:47 +0000 |
commit | 6dc247f99372dd30c77652836201381b14efe0af (patch) | |
tree | 1006a2f2bd27da639a05e5d1c3e88bf65b9ba05e /src/lib/libssl/tls13_internal.h | |
parent | 13bcf61e228400d01e501e57d279641478062b64 (diff) | |
download | openbsd-6dc247f99372dd30c77652836201381b14efe0af.tar.gz openbsd-6dc247f99372dd30c77652836201381b14efe0af.tar.bz2 openbsd-6dc247f99372dd30c77652836201381b14efe0af.zip |
Separate the callbacks for recieved and completed post handshake messages
from the record layer
ok jsing@
Diffstat (limited to 'src/lib/libssl/tls13_internal.h')
-rw-r--r-- | src/lib/libssl/tls13_internal.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/libssl/tls13_internal.h b/src/lib/libssl/tls13_internal.h index 1d7a7eb699..7288ca3448 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.28 2019/04/05 20:23:38 tb Exp $ */ | 1 | /* $OpenBSD: tls13_internal.h,v 1.29 2019/11/17 00:10:47 beck 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> |
@@ -38,7 +38,8 @@ __BEGIN_HIDDEN_DECLS | |||
38 | #define TLS13_IO_USE_LEGACY -4 | 38 | #define TLS13_IO_USE_LEGACY -4 |
39 | 39 | ||
40 | typedef void (*tls13_alert_cb)(uint8_t _alert_desc, void *_cb_arg); | 40 | typedef void (*tls13_alert_cb)(uint8_t _alert_desc, void *_cb_arg); |
41 | typedef int (*tls13_post_handshake_cb)(void *_cb_arg); | 41 | typedef int (*tls13_post_handshake_recv_cb)(void *_cb_arg, CBS *cbs); |
42 | typedef int (*tls13_post_handshake_sent_cb)(void *_cb_arg); | ||
42 | typedef ssize_t (*tls13_read_cb)(void *_buf, size_t _buflen, void *_cb_arg); | 43 | 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, | 44 | typedef ssize_t (*tls13_write_cb)(const void *_buf, size_t _buflen, |
44 | void *_cb_arg); | 45 | void *_cb_arg); |
@@ -107,7 +108,8 @@ struct tls13_record_layer; | |||
107 | 108 | ||
108 | struct tls13_record_layer *tls13_record_layer_new(tls13_read_cb wire_read, | 109 | struct tls13_record_layer *tls13_record_layer_new(tls13_read_cb wire_read, |
109 | tls13_write_cb wire_write, tls13_alert_cb alert_cb, | 110 | tls13_write_cb wire_write, tls13_alert_cb alert_cb, |
110 | tls13_post_handshake_cb post_handshake_cb, void *cb_arg); | 111 | tls13_post_handshake_recv_cb post_handshake_recv_cb, |
112 | tls13_post_handshake_sent_cb post_handshake_sent_cb, void *cb_arg); | ||
111 | void tls13_record_layer_free(struct tls13_record_layer *rl); | 113 | void tls13_record_layer_free(struct tls13_record_layer *rl); |
112 | void tls13_record_layer_set_aead(struct tls13_record_layer *rl, | 114 | void tls13_record_layer_set_aead(struct tls13_record_layer *rl, |
113 | const EVP_AEAD *aead); | 115 | const EVP_AEAD *aead); |