diff options
author | jsing <> | 2020-01-23 02:24:38 +0000 |
---|---|---|
committer | jsing <> | 2020-01-23 02:24:38 +0000 |
commit | cd57d3e792c4bb00f2fc86958119e7c341203865 (patch) | |
tree | af6ca5e40d5610fc6e16d77614baf9694fae2310 /src/lib/libssl/tls13_internal.h | |
parent | ad83deab61bd6207a1bcb14c6dad3ce4d6d347ef (diff) | |
download | openbsd-cd57d3e792c4bb00f2fc86958119e7c341203865.tar.gz openbsd-cd57d3e792c4bb00f2fc86958119e7c341203865.tar.bz2 openbsd-cd57d3e792c4bb00f2fc86958119e7c341203865.zip |
Pass a CBB to TLSv1.3 send handlers.
This avoids the need for each send handler to call
tls13_handshake_msg_start() and tls13_handshake_msg_finish().
ok beck@ tb@
Diffstat (limited to 'src/lib/libssl/tls13_internal.h')
-rw-r--r-- | src/lib/libssl/tls13_internal.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/lib/libssl/tls13_internal.h b/src/lib/libssl/tls13_internal.h index ba34961e33..d8a74ef67a 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.45 2020/01/22 13:10:51 jsing Exp $ */ | 1 | /* $OpenBSD: tls13_internal.h,v 1.46 2020/01/23 02:24:38 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> |
@@ -257,36 +257,36 @@ int tls13_legacy_shutdown(SSL *ssl); | |||
257 | 257 | ||
258 | int tls13_handshake_perform(struct tls13_ctx *ctx); | 258 | int tls13_handshake_perform(struct tls13_ctx *ctx); |
259 | 259 | ||
260 | int tls13_client_hello_send(struct tls13_ctx *ctx); | 260 | int tls13_client_hello_send(struct tls13_ctx *ctx, CBB *cbb); |
261 | int tls13_client_hello_sent(struct tls13_ctx *ctx); | 261 | int tls13_client_hello_sent(struct tls13_ctx *ctx); |
262 | int tls13_client_hello_recv(struct tls13_ctx *ctx, CBS *cbs); | 262 | int tls13_client_hello_recv(struct tls13_ctx *ctx, CBS *cbs); |
263 | int tls13_client_hello_retry_send(struct tls13_ctx *ctx); | 263 | int tls13_client_hello_retry_send(struct tls13_ctx *ctx, CBB *cbb); |
264 | int tls13_client_hello_retry_recv(struct tls13_ctx *ctx, CBS *cbs); | 264 | int tls13_client_hello_retry_recv(struct tls13_ctx *ctx, CBS *cbs); |
265 | int tls13_client_end_of_early_data_send(struct tls13_ctx *ctx); | 265 | int tls13_client_end_of_early_data_send(struct tls13_ctx *ctx, CBB *cbb); |
266 | int tls13_client_end_of_early_data_recv(struct tls13_ctx *ctx, CBS *cbs); | 266 | int tls13_client_end_of_early_data_recv(struct tls13_ctx *ctx, CBS *cbs); |
267 | int tls13_client_certificate_send(struct tls13_ctx *ctx); | 267 | int tls13_client_certificate_send(struct tls13_ctx *ctx, CBB *cbb); |
268 | int tls13_client_certificate_recv(struct tls13_ctx *ctx, CBS *cbs); | 268 | int tls13_client_certificate_recv(struct tls13_ctx *ctx, CBS *cbs); |
269 | int tls13_client_certificate_verify_send(struct tls13_ctx *ctx); | 269 | int tls13_client_certificate_verify_send(struct tls13_ctx *ctx, CBB *cbb); |
270 | int tls13_client_certificate_verify_recv(struct tls13_ctx *ctx, CBS *cbs); | 270 | int tls13_client_certificate_verify_recv(struct tls13_ctx *ctx, CBS *cbs); |
271 | int tls13_client_finished_recv(struct tls13_ctx *ctx, CBS *cbs); | 271 | int tls13_client_finished_recv(struct tls13_ctx *ctx, CBS *cbs); |
272 | int tls13_client_finished_send(struct tls13_ctx *ctx); | 272 | int tls13_client_finished_send(struct tls13_ctx *ctx, CBB *cbb); |
273 | int tls13_client_finished_sent(struct tls13_ctx *ctx); | 273 | int tls13_client_finished_sent(struct tls13_ctx *ctx); |
274 | int tls13_client_key_update_send(struct tls13_ctx *ctx); | 274 | int tls13_client_key_update_send(struct tls13_ctx *ctx, CBB *cbb); |
275 | int tls13_client_key_update_recv(struct tls13_ctx *ctx, CBS *cbs); | 275 | int tls13_client_key_update_recv(struct tls13_ctx *ctx, CBS *cbs); |
276 | int tls13_server_hello_recv(struct tls13_ctx *ctx, CBS *cbs); | 276 | int tls13_server_hello_recv(struct tls13_ctx *ctx, CBS *cbs); |
277 | int tls13_server_hello_send(struct tls13_ctx *ctx); | 277 | int tls13_server_hello_send(struct tls13_ctx *ctx, CBB *cbb); |
278 | int tls13_server_hello_retry_recv(struct tls13_ctx *ctx, CBS *cbs); | 278 | int tls13_server_hello_retry_recv(struct tls13_ctx *ctx, CBS *cbs); |
279 | int tls13_server_hello_retry_send(struct tls13_ctx *ctx); | 279 | int tls13_server_hello_retry_send(struct tls13_ctx *ctx, CBB *cbb); |
280 | int tls13_server_encrypted_extensions_recv(struct tls13_ctx *ctx, CBS *cbs); | 280 | int tls13_server_encrypted_extensions_recv(struct tls13_ctx *ctx, CBS *cbs); |
281 | int tls13_server_encrypted_extensions_send(struct tls13_ctx *ctx); | 281 | int tls13_server_encrypted_extensions_send(struct tls13_ctx *ctx, CBB *cbb); |
282 | int tls13_server_certificate_recv(struct tls13_ctx *ctx, CBS *cbs); | 282 | int tls13_server_certificate_recv(struct tls13_ctx *ctx, CBS *cbs); |
283 | int tls13_server_certificate_send(struct tls13_ctx *ctx); | 283 | int tls13_server_certificate_send(struct tls13_ctx *ctx, CBB *cbb); |
284 | int tls13_server_certificate_request_recv(struct tls13_ctx *ctx, CBS *cbs); | 284 | int tls13_server_certificate_request_recv(struct tls13_ctx *ctx, CBS *cbs); |
285 | int tls13_server_certificate_request_send(struct tls13_ctx *ctx); | 285 | int tls13_server_certificate_request_send(struct tls13_ctx *ctx, CBB *cbb); |
286 | int tls13_server_certificate_verify_send(struct tls13_ctx *ctx); | 286 | int tls13_server_certificate_verify_send(struct tls13_ctx *ctx, CBB *cbb); |
287 | int tls13_server_certificate_verify_recv(struct tls13_ctx *ctx, CBS *cbs); | 287 | int tls13_server_certificate_verify_recv(struct tls13_ctx *ctx, CBS *cbs); |
288 | int tls13_server_finished_recv(struct tls13_ctx *ctx, CBS *cbs); | 288 | int tls13_server_finished_recv(struct tls13_ctx *ctx, CBS *cbs); |
289 | int tls13_server_finished_send(struct tls13_ctx *ctx); | 289 | int tls13_server_finished_send(struct tls13_ctx *ctx, CBB *cbb); |
290 | 290 | ||
291 | void tls13_error_clear(struct tls13_error *error); | 291 | void tls13_error_clear(struct tls13_error *error); |
292 | 292 | ||