<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libtls, branch OPENBSD_7_3_BASE</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=OPENBSD_7_3_BASE</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=OPENBSD_7_3_BASE'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2023-03-10T16:45:50+00:00</updated>
<entry>
<title>Crankl libcrypto/libssl/libtls minors after symbol addition</title>
<updated>2023-03-10T16:45:50+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-03-10T16:45:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=fade9f4f04b548ca781e7f632f1d2cbed088db59'/>
<id>urn:sha1:fade9f4f04b548ca781e7f632f1d2cbed088db59</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Bump libtls minor to match libcrypto and libssl</title>
<updated>2022-11-13T14:07:15+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-11-13T14:07:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=4fb26602f2e5c0701783dcb35eb1b94cb55cbbea'/>
<id>urn:sha1:4fb26602f2e5c0701783dcb35eb1b94cb55cbbea</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bump major after libcrypto and libssl major bump</title>
<updated>2022-09-11T17:43:27+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-09-11T17:43:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=24348e1c1354449953c9349761db9397ce489a7a'/>
<id>urn:sha1:24348e1c1354449953c9349761db9397ce489a7a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Bump libtls minor after libcrypto and libssl minor bump</title>
<updated>2022-07-07T13:05:13+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-07-07T13:05:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=fe3d95b4f679c1b52d2b587ae54f0eaf8c783dcf'/>
<id>urn:sha1:fe3d95b4f679c1b52d2b587ae54f0eaf8c783dcf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Crank major after symbol removal.</title>
<updated>2022-03-24T15:57:04+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-03-24T15:57:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=8965c1424bfbc8c3e9e03d863ed1eb8c83c22eac'/>
<id>urn:sha1:8965c1424bfbc8c3e9e03d863ed1eb8c83c22eac</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Hide the tls_signer from public visibility. It's not ready yet and</title>
<updated>2022-03-24T15:56:34+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-03-24T15:56:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=3ec89a9ed2faefa8b6b6deaf561a2a72744e1335'/>
<id>urn:sha1:3ec89a9ed2faefa8b6b6deaf561a2a72744e1335</id>
<content type='text'>
should not be used. It will be revisited after release.

ok beck inoguchi jsing
</content>
</entry>
<entry>
<title>Plug a long standing leak in libtls CRL handling</title>
<updated>2022-02-08T19:13:50+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-02-08T19:13:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=f474d427587fdca7920adc59f098e68ed6c975f0'/>
<id>urn:sha1:f474d427587fdca7920adc59f098e68ed6c975f0</id>
<content type='text'>
X509_STORE_add_crl() does not take ownership of the CRL, it bumps its
refcount. So nulling out the CRL from the stack will leak it.

Issue reported by KS Sreeram, thanks!

ok jsing
</content>
</entry>
<entry>
<title>Provide our own signature padding defines.</title>
<updated>2022-02-01T17:18:38+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2022-02-01T17:18:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=1b0a76785c6e9fe8eb4f8f36bad366fe9a4d399c'/>
<id>urn:sha1:1b0a76785c6e9fe8eb4f8f36bad366fe9a4d399c</id>
<content type='text'>
Rather than leaking libcrypto defines through the tls_sign_cb and
tls_signer_sign() interfaces, provide and use our own TLS_PADDING_*
defines.

ok inoguchi@ tb@
</content>
</entry>
<entry>
<title>Revise signer callback interface.</title>
<updated>2022-02-01T17:13:10+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2022-02-01T17:13:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=f88d8440214889b6d855585bedc525a8ce92fc26'/>
<id>urn:sha1:f88d8440214889b6d855585bedc525a8ce92fc26</id>
<content type='text'>
The current design of tls_sign_cb provides a pointer to a buffer where the
signature needs to be copied, however it fails to provide a length which
could result in buffer overwrites. Furthermore, tls_signer_sign() is
designed such that it allocates and returns ownership to the caller.

Revise tls_sign_cb so that the called function is expected to allocate a
buffer, returning ownership of the buffer (along with its length) to the
caller of the callback. This makes it far easier (and safer) to implement
a tls_sign_cb callback, plus tls_signer_sign can be directly plugged in
(with an appropriate cast).

While here, rename and reorder some arguments - while we will normally
sign a digest, there is no requirement for this to be the case hence use
'input' and 'input_len'. Move padding (an input) before the outputs and
add some additional bounds/return value checks.

This is technically an API/ABI break that would need a libtls major bump,
however since nothing is using the signer interface (outside of regress),
we'll ride the original minor bump.

With input from tb@

ok inoguchi@ tb@
</content>
</entry>
<entry>
<title>Add limits.h for INT_MAX in tls_signer.c</title>
<updated>2022-01-29T02:03:19+00:00</updated>
<author>
<name>inoguchi</name>
<email></email>
</author>
<published>2022-01-29T02:03:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=929db083963cebef863cbadb2c2375b5441e0aad'/>
<id>urn:sha1:929db083963cebef863cbadb2c2375b5441e0aad</id>
<content type='text'>
ok jsing@ tb@
</content>
</entry>
</feed>
