CVS: cvs.openbsd.org: src

Kenjiro NAKAYAMA <[email protected]>
Newsgroups gmane.os.openbsd.cvs
Message-ID <[email protected]>
CVSROOT:	/cvs
Module name:	src
Changes by:	[email protected]	2026/08/20 20:23:33

Modified files:
	lib/libssl     : tls13_record.c 

Log message:
Allocate TLS 1.3 receive buffers lazily

The receive buffer is not used for records created for sending. Avoid
allocating a maximum-sized buffer in tls13_record_new() and instead
allocate a header-sized buffer when tls13_record_recv() is first called.
The buffer will grow as needed once the record length is known.

This avoids an unnecessary allocation for outgoing records and reduces
the initial allocation size for incoming records.

ok tb jsing
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.