<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libssl/tls_buffer.c, branch OPENBSD_7_9</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2022-11-10T18:06:37+00:00</updated>
<entry>
<title>Use tls_buffer for alert and handshake fragments in the legacy stack.</title>
<updated>2022-11-10T18:06:37+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2022-11-10T18:06:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=89b5796e48ebf1a65b490024b25e1111aaa5d4e3'/>
<id>urn:sha1:89b5796e48ebf1a65b490024b25e1111aaa5d4e3</id>
<content type='text'>
This avoids a bunch of pointer munging and a handrolled memmove.

ok tb@
</content>
</entry>
<entry>
<title>Add read and write support to tls_buffer.</title>
<updated>2022-07-22T19:33:53+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2022-07-22T19:33:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=9c3d953fd11179652ffcb442af0f28c50154e1e2'/>
<id>urn:sha1:9c3d953fd11179652ffcb442af0f28c50154e1e2</id>
<content type='text'>
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@
</content>
</entry>
<entry>
<title>Remove tls_buffer_set_data() and remove/revise callers.</title>
<updated>2022-07-20T06:32:24+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2022-07-20T06:32:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=c883f86bc052054b4a1fc92fd72cc4c7ea17657e'/>
<id>urn:sha1:c883f86bc052054b4a1fc92fd72cc4c7ea17657e</id>
<content type='text'>
There is no way that tls_buffer_set_data() can currently work in
conjunction with tls_buffer_expand(). This fact is currently hidden by the
way that PHH works, which reads the same data from the record layer (which
it needs to do anyway, since we may not have all of the handshake message
in a single record).

Since this is broken, mop it up and change the PHH callback to not provide
the record data.

ok beck@ tb@
</content>
</entry>
<entry>
<title>Rename tls13_buffer to tls_buffer.</title>
<updated>2021-10-23T13:12:14+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2021-10-23T13:12:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=3262c76ed1f7d7ad4c2133bc12fc909491a69e83'/>
<id>urn:sha1:3262c76ed1f7d7ad4c2133bc12fc909491a69e83</id>
<content type='text'>
This code will soon be used in the DTLSv1.2 and TLSv1.2 stack. Also
introduce tls_internal.h and move/rename the read/write/flush callbacks.

ok beck@ tb@
</content>
</entry>
</feed>
