summaryrefslogtreecommitdiff
path: root/src/lib/libssl/tls13_server.c
diff options
context:
space:
mode:
authorjsing <>2020-01-23 02:24:38 +0000
committerjsing <>2020-01-23 02:24:38 +0000
commitcd57d3e792c4bb00f2fc86958119e7c341203865 (patch)
treeaf6ca5e40d5610fc6e16d77614baf9694fae2310 /src/lib/libssl/tls13_server.c
parentad83deab61bd6207a1bcb14c6dad3ce4d6d347ef (diff)
downloadopenbsd-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.c26
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
222int 222int
223tls13_client_hello_retry_send(struct tls13_ctx *ctx) 223tls13_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
234int 234int
235tls13_client_end_of_early_data_send(struct tls13_ctx *ctx) 235tls13_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
246int 246int
247tls13_client_certificate_send(struct tls13_ctx *ctx) 247tls13_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
258int 258int
259tls13_client_certificate_verify_send(struct tls13_ctx *ctx) 259tls13_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
278int 278int
279tls13_client_key_update_send(struct tls13_ctx *ctx) 279tls13_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
290int 290int
291tls13_server_hello_send(struct tls13_ctx *ctx) 291tls13_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
298int 298int
299tls13_server_hello_retry_send(struct tls13_ctx *ctx) 299tls13_server_hello_retry_send(struct tls13_ctx *ctx, CBB *cbb)
300{ 300{
301 return 0; 301 return 0;
302} 302}
303 303
304int 304int
305tls13_server_encrypted_extensions_send(struct tls13_ctx *ctx) 305tls13_server_encrypted_extensions_send(struct tls13_ctx *ctx, CBB *cbb)
306{ 306{
307 return 0; 307 return 0;
308} 308}
309 309
310int 310int
311tls13_server_certificate_send(struct tls13_ctx *ctx) 311tls13_server_certificate_send(struct tls13_ctx *ctx, CBB *cbb)
312{ 312{
313 return 0; 313 return 0;
314} 314}
315 315
316int 316int
317tls13_server_certificate_request_send(struct tls13_ctx *ctx) 317tls13_server_certificate_request_send(struct tls13_ctx *ctx, CBB *cbb)
318{ 318{
319 return 0; 319 return 0;
320} 320}
321 321
322int 322int
323tls13_server_certificate_verify_send(struct tls13_ctx *ctx) 323tls13_server_certificate_verify_send(struct tls13_ctx *ctx, CBB *cbb)
324{ 324{
325 return 0; 325 return 0;
326} 326}
327 327
328int 328int
329tls13_server_finished_send(struct tls13_ctx *ctx) 329tls13_server_finished_send(struct tls13_ctx *ctx, CBB *cbb)
330{ 330{
331 return 0; 331 return 0;
332} 332}