From cae6ba899a9344e719ed96e6afdb8958b891efb0 Mon Sep 17 00:00:00 2001 From: jsing <> Date: Sat, 4 Sep 2021 16:26:12 +0000 Subject: 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@ --- src/lib/libssl/tls13_legacy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/libssl/tls13_legacy.c') 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 @@ -/* $OpenBSD: tls13_legacy.c,v 1.28 2021/09/03 13:16:54 jsing Exp $ */ +/* $OpenBSD: tls13_legacy.c,v 1.29 2021/09/04 16:26:12 jsing Exp $ */ /* * Copyright (c) 2018, 2019 Joel Sing * @@ -304,7 +304,7 @@ tls13_use_legacy_stack(struct tls13_ctx *ctx) goto err; /* Stash any unprocessed data from the last record. */ - tls13_record_layer_rbuf(ctx->rl, &cbs); + tls13_record_layer_rcontent(ctx->rl, &cbs); if (CBS_len(&cbs) > 0) { if (!CBB_init_fixed(&cbb, S3I(s)->rbuf.buf, S3I(s)->rbuf.len)) -- cgit v1.2.3-55-g6feb