Add read and write support to tls_buffer.
authorjsing <jsing@openbsd.org>
Fri, 22 Jul 2022 19:33:53 +0000 (19:33 +0000)
committerjsing <jsing@openbsd.org>
Fri, 22 Jul 2022 19:33:53 +0000 (19:33 +0000)
commit24c399e99a02e098cfb950694eed3ffbe8491e3e
tree2dd3ee285c881c55a1528f415a8131f060122964
parentaae7fbb021ca33282796f4b26dee648dfb98074f
Add read and write support to tls_buffer.

tls_buffer was original created for a specific use case, namely reading in
length prefixed messages. This adds read and write support, along with a
capacity limit, allowing it to be used in additional use cases.

ok beck@ tb@
lib/libssl/tls13_handshake_msg.c
lib/libssl/tls13_record.c
lib/libssl/tls_buffer.c
lib/libssl/tls_internal.h