diff options
Diffstat (limited to 'src/lib/libssl/tls13_internal.h')
-rw-r--r-- | src/lib/libssl/tls13_internal.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/lib/libssl/tls13_internal.h b/src/lib/libssl/tls13_internal.h index 6382f8b048..f4b17bdf25 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.100 2022/07/24 14:16:29 jsing Exp $ */ | 1 | /* $OpenBSD: tls13_internal.h,v 1.101 2022/07/24 14:28:16 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> |
@@ -175,9 +175,19 @@ int tls13_update_server_traffic_secret(struct tls13_secrets *secrets); | |||
175 | struct tls13_record_layer; | 175 | struct tls13_record_layer; |
176 | 176 | ||
177 | struct tls13_record_layer_callbacks { | 177 | struct tls13_record_layer_callbacks { |
178 | /* Wire callbacks. */ | ||
178 | tls_read_cb wire_read; | 179 | tls_read_cb wire_read; |
179 | tls_write_cb wire_write; | 180 | tls_write_cb wire_write; |
180 | tls_flush_cb wire_flush; | 181 | tls_flush_cb wire_flush; |
182 | |||
183 | /* Interceptors. */ | ||
184 | tls_handshake_read_cb handshake_read; | ||
185 | tls_handshake_write_cb handshake_write; | ||
186 | tls_traffic_key_cb set_read_traffic_key; | ||
187 | tls_traffic_key_cb set_write_traffic_key; | ||
188 | tls_alert_send_cb alert_send; | ||
189 | |||
190 | /* Notification callbacks. */ | ||
181 | tls13_alert_cb alert_recv; | 191 | tls13_alert_cb alert_recv; |
182 | tls13_alert_cb alert_sent; | 192 | tls13_alert_cb alert_sent; |
183 | tls13_phh_recv_cb phh_recv; | 193 | tls13_phh_recv_cb phh_recv; |
@@ -187,6 +197,8 @@ struct tls13_record_layer_callbacks { | |||
187 | struct tls13_record_layer *tls13_record_layer_new( | 197 | struct tls13_record_layer *tls13_record_layer_new( |
188 | const struct tls13_record_layer_callbacks *callbacks, void *cb_arg); | 198 | const struct tls13_record_layer_callbacks *callbacks, void *cb_arg); |
189 | void tls13_record_layer_free(struct tls13_record_layer *rl); | 199 | void tls13_record_layer_free(struct tls13_record_layer *rl); |
200 | void tls13_record_layer_set_callbacks(struct tls13_record_layer *rl, | ||
201 | const struct tls13_record_layer_callbacks *callbacks, void *cb_arg); | ||
190 | void tls13_record_layer_allow_ccs(struct tls13_record_layer *rl, int allow); | 202 | void tls13_record_layer_allow_ccs(struct tls13_record_layer *rl, int allow); |
191 | void tls13_record_layer_allow_legacy_alerts(struct tls13_record_layer *rl, int allow); | 203 | void tls13_record_layer_allow_legacy_alerts(struct tls13_record_layer *rl, int allow); |
192 | void tls13_record_layer_rcontent(struct tls13_record_layer *rl, CBS *cbs); | 204 | void tls13_record_layer_rcontent(struct tls13_record_layer *rl, CBS *cbs); |
@@ -297,6 +309,13 @@ void tls13_ctx_free(struct tls13_ctx *ctx); | |||
297 | const EVP_AEAD *tls13_cipher_aead(const SSL_CIPHER *cipher); | 309 | const EVP_AEAD *tls13_cipher_aead(const SSL_CIPHER *cipher); |
298 | const EVP_MD *tls13_cipher_hash(const SSL_CIPHER *cipher); | 310 | const EVP_MD *tls13_cipher_hash(const SSL_CIPHER *cipher); |
299 | 311 | ||
312 | void tls13_alert_received_cb(uint8_t alert_desc, void *arg); | ||
313 | void tls13_alert_sent_cb(uint8_t alert_desc, void *arg); | ||
314 | ssize_t tls13_phh_received_cb(void *cb_arg); | ||
315 | void tls13_phh_done_cb(void *cb_arg); | ||
316 | |||
317 | int tls13_quic_init(struct tls13_ctx *ctx); | ||
318 | |||
300 | /* | 319 | /* |
301 | * Legacy interfaces. | 320 | * Legacy interfaces. |
302 | */ | 321 | */ |