Factor out the TLSv1.3 code that handles content from TLS records.
authorjsing <jsing@openbsd.org>
Sat, 4 Sep 2021 16:26:12 +0000 (16:26 +0000)
committerjsing <jsing@openbsd.org>
Sat, 4 Sep 2021 16:26:12 +0000 (16:26 +0000)
commit8ccc394472c04770d6b419b298c71feb8a152a24
treebe4709beadb1c19b909fed22acd3191a63d53ac3
parent975610e875ca8bc7011ba0e4f57a0df8ee22378c
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@
lib/libssl/Makefile
lib/libssl/tls13_internal.h
lib/libssl/tls13_legacy.c
lib/libssl/tls13_record_layer.c
lib/libssl/tls_content.c [new file with mode: 0644]
lib/libssl/tls_content.h [new file with mode: 0644]