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_server.c | |
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_server.c')
-rw-r--r-- | src/lib/libssl/tls13_server.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/lib/libssl/tls13_server.c b/src/lib/libssl/tls13_server.c index ee7b92b9a3..88935cf645 100644 --- a/src/lib/libssl/tls13_server.c +++ b/src/lib/libssl/tls13_server.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tls13_server.c,v 1.7 2020/01/22 15:47:22 jsing Exp $ */ | 1 | /* $OpenBSD: tls13_server.c,v 1.8 2020/01/23 02:24:38 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2019 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2019 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -220,7 +220,7 @@ tls13_client_hello_recv(struct tls13_ctx *ctx, CBS *cbs) | |||
220 | } | 220 | } |
221 | 221 | ||
222 | int | 222 | int |
223 | tls13_client_hello_retry_send(struct tls13_ctx *ctx) | 223 | tls13_client_hello_retry_send(struct tls13_ctx *ctx, CBB *cbb) |
224 | { | 224 | { |
225 | return 0; | 225 | return 0; |
226 | } | 226 | } |
@@ -232,7 +232,7 @@ tls13_server_hello_retry_recv(struct tls13_ctx *ctx, CBS *cbs) | |||
232 | } | 232 | } |
233 | 233 | ||
234 | int | 234 | int |
235 | tls13_client_end_of_early_data_send(struct tls13_ctx *ctx) | 235 | tls13_client_end_of_early_data_send(struct tls13_ctx *ctx, CBB *cbb) |
236 | { | 236 | { |
237 | return 0; | 237 | return 0; |
238 | } | 238 | } |
@@ -244,7 +244,7 @@ tls13_client_end_of_early_data_recv(struct tls13_ctx *ctx, CBS *cbs) | |||
244 | } | 244 | } |
245 | 245 | ||
246 | int | 246 | int |
247 | tls13_client_certificate_send(struct tls13_ctx *ctx) | 247 | tls13_client_certificate_send(struct tls13_ctx *ctx, CBB *cbb) |
248 | { | 248 | { |
249 | return 0; | 249 | return 0; |
250 | } | 250 | } |
@@ -256,7 +256,7 @@ tls13_client_certificate_recv(struct tls13_ctx *ctx, CBS *cbs) | |||
256 | } | 256 | } |
257 | 257 | ||
258 | int | 258 | int |
259 | tls13_client_certificate_verify_send(struct tls13_ctx *ctx) | 259 | tls13_client_certificate_verify_send(struct tls13_ctx *ctx, CBB *cbb) |
260 | { | 260 | { |
261 | return 0; | 261 | return 0; |
262 | } | 262 | } |
@@ -276,7 +276,7 @@ tls13_client_finished_recv(struct tls13_ctx *ctx, CBS *cbs) | |||
276 | } | 276 | } |
277 | 277 | ||
278 | int | 278 | int |
279 | tls13_client_key_update_send(struct tls13_ctx *ctx) | 279 | tls13_client_key_update_send(struct tls13_ctx *ctx, CBB *cbb) |
280 | { | 280 | { |
281 | return 0; | 281 | return 0; |
282 | } | 282 | } |
@@ -288,7 +288,7 @@ tls13_client_key_update_recv(struct tls13_ctx *ctx, CBS *cbs) | |||
288 | } | 288 | } |
289 | 289 | ||
290 | int | 290 | int |
291 | tls13_server_hello_send(struct tls13_ctx *ctx) | 291 | tls13_server_hello_send(struct tls13_ctx *ctx, CBB *cbb) |
292 | { | 292 | { |
293 | ctx->handshake_stage.hs_type |= NEGOTIATED; | 293 | ctx->handshake_stage.hs_type |= NEGOTIATED; |
294 | 294 | ||
@@ -296,37 +296,37 @@ tls13_server_hello_send(struct tls13_ctx *ctx) | |||
296 | } | 296 | } |
297 | 297 | ||
298 | int | 298 | int |
299 | tls13_server_hello_retry_send(struct tls13_ctx *ctx) | 299 | tls13_server_hello_retry_send(struct tls13_ctx *ctx, CBB *cbb) |
300 | { | 300 | { |
301 | return 0; | 301 | return 0; |
302 | } | 302 | } |
303 | 303 | ||
304 | int | 304 | int |
305 | tls13_server_encrypted_extensions_send(struct tls13_ctx *ctx) | 305 | tls13_server_encrypted_extensions_send(struct tls13_ctx *ctx, CBB *cbb) |
306 | { | 306 | { |
307 | return 0; | 307 | return 0; |
308 | } | 308 | } |
309 | 309 | ||
310 | int | 310 | int |
311 | tls13_server_certificate_send(struct tls13_ctx *ctx) | 311 | tls13_server_certificate_send(struct tls13_ctx *ctx, CBB *cbb) |
312 | { | 312 | { |
313 | return 0; | 313 | return 0; |
314 | } | 314 | } |
315 | 315 | ||
316 | int | 316 | int |
317 | tls13_server_certificate_request_send(struct tls13_ctx *ctx) | 317 | tls13_server_certificate_request_send(struct tls13_ctx *ctx, CBB *cbb) |
318 | { | 318 | { |
319 | return 0; | 319 | return 0; |
320 | } | 320 | } |
321 | 321 | ||
322 | int | 322 | int |
323 | tls13_server_certificate_verify_send(struct tls13_ctx *ctx) | 323 | tls13_server_certificate_verify_send(struct tls13_ctx *ctx, CBB *cbb) |
324 | { | 324 | { |
325 | return 0; | 325 | return 0; |
326 | } | 326 | } |
327 | 327 | ||
328 | int | 328 | int |
329 | tls13_server_finished_send(struct tls13_ctx *ctx) | 329 | tls13_server_finished_send(struct tls13_ctx *ctx, CBB *cbb) |
330 | { | 330 | { |
331 | return 0; | 331 | return 0; |
332 | } | 332 | } |