<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libssl, branch libressl-v3.1.0</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=libressl-v3.1.0</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=libressl-v3.1.0'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2020-03-30T10:28:59+00:00</updated>
<entry>
<title>Void functions obviously do not return values; no need to elaborate.</title>
<updated>2020-03-30T10:28:59+00:00</updated>
<author>
<name>schwarze</name>
<email></email>
</author>
<published>2020-03-30T10:28:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=4453211b1bc50f16a0dac3b8c66e63b25afc65cf'/>
<id>urn:sha1:4453211b1bc50f16a0dac3b8c66e63b25afc65cf</id>
<content type='text'>
Patch from Martin Vahlensieck &lt;academicsolutions dot ch&gt;.
</content>
</entry>
<entry>
<title>Void functions obviously do not return values; no need to elaborate.</title>
<updated>2020-03-29T17:05:02+00:00</updated>
<author>
<name>schwarze</name>
<email></email>
</author>
<published>2020-03-29T17:05:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=f380a0425155bb24efdb8ed8a5472375889c8ed4'/>
<id>urn:sha1:f380a0425155bb24efdb8ed8a5472375889c8ed4</id>
<content type='text'>
Patch from Martin Vahlensieck &lt;academicsolutions dot ch&gt;.
</content>
</entry>
<entry>
<title>Consistently spell 'unsigned' as 'unsigned int', as style(9) seems</title>
<updated>2020-03-16T15:25:14+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2020-03-16T15:25:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=168e0561df78f7340b3a674c6ffe771fb5b4bbb2'/>
<id>urn:sha1:168e0561df78f7340b3a674c6ffe771fb5b4bbb2</id>
<content type='text'>
to prefer that. No binary change except in d1_srtp.c where the
generated assembly differs only in line numbers (due to a wrapped
long line) and in s3_cbc.c where there is no change in the generated
assembly.

ok inoguchi jsing
</content>
</entry>
<entry>
<title>The RFC is clear (section 5.3) that sequence number should never wrap.</title>
<updated>2020-03-16T15:11:35+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2020-03-16T15:11:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=32be1a54d46e2dd4e81e6aa7ba36eec513f5833f'/>
<id>urn:sha1:32be1a54d46e2dd4e81e6aa7ba36eec513f5833f</id>
<content type='text'>
We currently throw an error on overflow, but still wrap. Check up front
if we would need to wrap and only increment if that case is excluded.
This simplifies the increment loop and makes the returns in this function
less magic.

ok jsing
</content>
</entry>
<entry>
<title>Remove dtls1_enc().</title>
<updated>2020-03-13T16:40:42+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2020-03-13T16:40:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=591b982ee293938f0df951b42722d3714201a5b8'/>
<id>urn:sha1:591b982ee293938f0df951b42722d3714201a5b8</id>
<content type='text'>
Like much of the original DTLS code, dtls1_enc() is effectively a renamed
copy of tls1_enc(). Since then tls1_enc() has been modified, however the
non-AEAD code remains largely the same. As such, remove dtls1_enc() and
instead call tls1_enc() from the DTLS code.

The tls1_enc() AEAD code does not currently work correctly with DTLS,
however this is a non-issue since we do not support AEAD cipher suites with
DTLS currently.

ok tb@
</content>
</entry>
<entry>
<title>Correct TLSv1.3 sequence number increment and wrapping check.</title>
<updated>2020-03-13T16:03:27+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2020-03-13T16:03:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=c81750c657e3e02baac9d726269c5fe6dab2d073'/>
<id>urn:sha1:c81750c657e3e02baac9d726269c5fe6dab2d073</id>
<content type='text'>
Fix proposed by tb@
</content>
</entry>
<entry>
<title>Ensure that CBB_add_space() always provides zeroed memory.</title>
<updated>2020-03-13T15:54:34+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2020-03-13T15:54:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=13b054b349060ec4ab6863bdeb5c18f1992b6e5e'/>
<id>urn:sha1:13b054b349060ec4ab6863bdeb5c18f1992b6e5e</id>
<content type='text'>
ok tb@
</content>
</entry>
<entry>
<title>Use calloc() rather than malloc() when allocating initial CBB buffer.</title>
<updated>2020-03-12T17:17:12+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2020-03-12T17:17:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=5bd2365f596fdaf1fd5d5feb218d8a3e4c99a2f1'/>
<id>urn:sha1:5bd2365f596fdaf1fd5d5feb218d8a3e4c99a2f1</id>
<content type='text'>
CBB uses recallocarray() to expand buffers, however was still using
malloc() for the initial buffer, which could result in memory being leaked
in incorrect use cases.

While here also use calloc() to allocate internal structs.

ok inoguchi@ tb@
</content>
</entry>
<entry>
<title>Use calloc() rather than malloc() when allocating buffers.</title>
<updated>2020-03-12T17:15:33+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2020-03-12T17:15:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=1ff32d7d2a793d3705647cf8a01469592503cf75'/>
<id>urn:sha1:1ff32d7d2a793d3705647cf8a01469592503cf75</id>
<content type='text'>
This reduces the chance of accidently leaking stack memory.

ok inoguchi@ tb@
</content>
</entry>
<entry>
<title>Stop overloading the record type for padding length.</title>
<updated>2020-03-12T17:09:02+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2020-03-12T17:09:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=090aa8eb50273dd73eaba4ac5362be86b97cd254'/>
<id>urn:sha1:090aa8eb50273dd73eaba4ac5362be86b97cd254</id>
<content type='text'>
Currently the CBC related code stuffs the padding length in the upper bits
of the type field... stop doing that and add a padding_length field to the
record struct instead.

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