summaryrefslogtreecommitdiff
path: root/src/lib/libssl/tls13_legacy.c
diff options
context:
space:
mode:
authorjsing <>2021-09-04 16:26:12 +0000
committerjsing <>2021-09-04 16:26:12 +0000
commitcae6ba899a9344e719ed96e6afdb8958b891efb0 (patch)
tree44332845387994e621a09d6d1451fd9e6a3c865d /src/lib/libssl/tls13_legacy.c
parent5f9c147b857183086592529152aa63fc86fa2e56 (diff)
downloadopenbsd-cae6ba899a9344e719ed96e6afdb8958b891efb0.tar.gz
openbsd-cae6ba899a9344e719ed96e6afdb8958b891efb0.tar.bz2
openbsd-cae6ba899a9344e719ed96e6afdb8958b891efb0.zip
Factor out the TLSv1.3 code that handles content from TLS records.
Currently, the plaintext content from opened TLS records is handled via the rbuf code in the TLSv1.3 record layer. Factor this out and provide a separate struct tls_content, which knows how to track and manipulate the content. This makes the TLSv1.3 code cleaner, however it will also soon also be used to untangle parts of the legacy record layer. ok beck@ tb@
Diffstat (limited to 'src/lib/libssl/tls13_legacy.c')
-rw-r--r--src/lib/libssl/tls13_legacy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/tls13_legacy.c b/src/lib/libssl/tls13_legacy.c
index 477d09d63e..df4408d903 100644
--- a/src/lib/libssl/tls13_legacy.c
+++ b/src/lib/libssl/tls13_legacy.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: tls13_legacy.c,v 1.28 2021/09/03 13:16:54 jsing Exp $ */ 1/* $OpenBSD: tls13_legacy.c,v 1.29 2021/09/04 16:26:12 jsing Exp $ */
2/* 2/*
3 * Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -304,7 +304,7 @@ tls13_use_legacy_stack(struct tls13_ctx *ctx)
304 goto err; 304 goto err;
305 305
306 /* Stash any unprocessed data from the last record. */ 306 /* Stash any unprocessed data from the last record. */
307 tls13_record_layer_rbuf(ctx->rl, &cbs); 307 tls13_record_layer_rcontent(ctx->rl, &cbs);
308 if (CBS_len(&cbs) > 0) { 308 if (CBS_len(&cbs) > 0) {
309 if (!CBB_init_fixed(&cbb, S3I(s)->rbuf.buf, 309 if (!CBB_init_fixed(&cbb, S3I(s)->rbuf.buf,
310 S3I(s)->rbuf.len)) 310 S3I(s)->rbuf.len))