diff options
Diffstat (limited to 'src/lib/libssl/tls13_internal.h')
-rw-r--r-- | src/lib/libssl/tls13_internal.h | 27 |
1 files changed, 5 insertions, 22 deletions
diff --git a/src/lib/libssl/tls13_internal.h b/src/lib/libssl/tls13_internal.h index 20cb52ebdd..7e3b081966 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.94 2021/09/16 19:25:30 jsing Exp $ */ | 1 | /* $OpenBSD: tls13_internal.h,v 1.95 2021/10/23 13:12:14 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> |
@@ -24,6 +24,7 @@ | |||
24 | #include <openssl/ssl.h> | 24 | #include <openssl/ssl.h> |
25 | 25 | ||
26 | #include "bytestring.h" | 26 | #include "bytestring.h" |
27 | #include "tls_internal.h" | ||
27 | 28 | ||
28 | __BEGIN_HIDDEN_DECLS | 29 | __BEGIN_HIDDEN_DECLS |
29 | 30 | ||
@@ -89,29 +90,11 @@ __BEGIN_HIDDEN_DECLS | |||
89 | typedef void (*tls13_alert_cb)(uint8_t _alert_desc, void *_cb_arg); | 90 | typedef void (*tls13_alert_cb)(uint8_t _alert_desc, void *_cb_arg); |
90 | typedef ssize_t (*tls13_phh_recv_cb)(void *_cb_arg, CBS *_cbs); | 91 | typedef ssize_t (*tls13_phh_recv_cb)(void *_cb_arg, CBS *_cbs); |
91 | typedef void (*tls13_phh_sent_cb)(void *_cb_arg); | 92 | typedef void (*tls13_phh_sent_cb)(void *_cb_arg); |
92 | typedef ssize_t (*tls13_read_cb)(void *_buf, size_t _buflen, void *_cb_arg); | ||
93 | typedef ssize_t (*tls13_write_cb)(const void *_buf, size_t _buflen, | ||
94 | void *_cb_arg); | ||
95 | typedef ssize_t (*tls13_flush_cb)(void *_cb_arg); | ||
96 | typedef void (*tls13_handshake_message_cb)(void *_cb_arg); | 93 | typedef void (*tls13_handshake_message_cb)(void *_cb_arg); |
97 | typedef void (*tls13_info_cb)(void *_cb_arg, int _state, int _ret); | 94 | typedef void (*tls13_info_cb)(void *_cb_arg, int _state, int _ret); |
98 | typedef int (*tls13_ocsp_status_cb)(void *_cb_arg); | 95 | typedef int (*tls13_ocsp_status_cb)(void *_cb_arg); |
99 | 96 | ||
100 | /* | 97 | /* |
101 | * Buffers. | ||
102 | */ | ||
103 | struct tls13_buffer; | ||
104 | |||
105 | struct tls13_buffer *tls13_buffer_new(size_t init_size); | ||
106 | int tls13_buffer_set_data(struct tls13_buffer *buf, CBS *data); | ||
107 | void tls13_buffer_free(struct tls13_buffer *buf); | ||
108 | ssize_t tls13_buffer_extend(struct tls13_buffer *buf, size_t len, | ||
109 | tls13_read_cb read_cb, void *cb_arg); | ||
110 | void tls13_buffer_cbs(struct tls13_buffer *buf, CBS *cbs); | ||
111 | int tls13_buffer_finish(struct tls13_buffer *buf, uint8_t **out, | ||
112 | size_t *out_len); | ||
113 | |||
114 | /* | ||
115 | * Secrets. | 98 | * Secrets. |
116 | */ | 99 | */ |
117 | struct tls13_secret { | 100 | struct tls13_secret { |
@@ -199,9 +182,9 @@ int tls13_key_share_derive(struct tls13_key_share *ks, uint8_t **shared_key, | |||
199 | struct tls13_record_layer; | 182 | struct tls13_record_layer; |
200 | 183 | ||
201 | struct tls13_record_layer_callbacks { | 184 | struct tls13_record_layer_callbacks { |
202 | tls13_read_cb wire_read; | 185 | tls_read_cb wire_read; |
203 | tls13_write_cb wire_write; | 186 | tls_write_cb wire_write; |
204 | tls13_flush_cb wire_flush; | 187 | tls_flush_cb wire_flush; |
205 | tls13_alert_cb alert_recv; | 188 | tls13_alert_cb alert_recv; |
206 | tls13_alert_cb alert_sent; | 189 | tls13_alert_cb alert_sent; |
207 | tls13_phh_recv_cb phh_recv; | 190 | tls13_phh_recv_cb phh_recv; |