summaryrefslogtreecommitdiff
path: root/src/lib/libssl/tls13_handshake.c
diff options
context:
space:
mode:
authortb <>2020-02-05 06:12:43 +0000
committertb <>2020-02-05 06:12:43 +0000
commit2ea9bc2f2eed516702797aac6d428221092613a3 (patch)
tree2294088e149a61d156b174d66775d37a987dcc32 /src/lib/libssl/tls13_handshake.c
parentf785987ce739e20256eb67b362a15f289d5120b3 (diff)
downloadopenbsd-2ea9bc2f2eed516702797aac6d428221092613a3.tar.gz
openbsd-2ea9bc2f2eed516702797aac6d428221092613a3.tar.bz2
openbsd-2ea9bc2f2eed516702797aac6d428221092613a3.zip
Rework tls13_legacy_handshake_message_{recv,sent}_cb() to use
their own CBS as a preparation for upcoming HRR diffs. ok jsing
Diffstat (limited to 'src/lib/libssl/tls13_handshake.c')
-rw-r--r--src/lib/libssl/tls13_handshake.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libssl/tls13_handshake.c b/src/lib/libssl/tls13_handshake.c
index 31bd796b93..c850e716e7 100644
--- a/src/lib/libssl/tls13_handshake.c
+++ b/src/lib/libssl/tls13_handshake.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: tls13_handshake.c,v 1.49 2020/01/29 13:44:42 tb Exp $ */ 1/* $OpenBSD: tls13_handshake.c,v 1.50 2020/02/05 06:12:43 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2018-2019 Theo Buehler <tb@openbsd.org> 3 * Copyright (c) 2018-2019 Theo Buehler <tb@openbsd.org>
4 * Copyright (c) 2019 Joel Sing <jsing@openbsd.org> 4 * Copyright (c) 2019 Joel Sing <jsing@openbsd.org>
@@ -355,7 +355,7 @@ tls13_handshake_send_action(struct tls13_ctx *ctx,
355 } 355 }
356 356
357 if (ctx->handshake_message_sent_cb != NULL) 357 if (ctx->handshake_message_sent_cb != NULL)
358 ctx->handshake_message_sent_cb(ctx, &cbs); 358 ctx->handshake_message_sent_cb(ctx);
359 359
360 tls13_handshake_msg_free(ctx->hs_msg); 360 tls13_handshake_msg_free(ctx->hs_msg);
361 ctx->hs_msg = NULL; 361 ctx->hs_msg = NULL;
@@ -394,7 +394,7 @@ tls13_handshake_recv_action(struct tls13_ctx *ctx,
394 return TLS13_IO_FAILURE; 394 return TLS13_IO_FAILURE;
395 395
396 if (ctx->handshake_message_recv_cb != NULL) 396 if (ctx->handshake_message_recv_cb != NULL)
397 ctx->handshake_message_recv_cb(ctx, &cbs); 397 ctx->handshake_message_recv_cb(ctx);
398 398
399 /* 399 /*
400 * In TLSv1.3 there is no way to know if you're going to receive a 400 * In TLSv1.3 there is no way to know if you're going to receive a