<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib, branch master</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=master</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2026-04-25T05:47:03+00:00</updated>
<entry>
<title>Add FIPS 180-4 references for SHA-256 constants.</title>
<updated>2026-04-25T05:47:03+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2026-04-25T05:47:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=97c2391bc4e4f5f825b6730ddf68b06376f77e52'/>
<id>urn:sha1:97c2391bc4e4f5f825b6730ddf68b06376f77e52</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Simplify PKCS7_get_issuer_and_serial()</title>
<updated>2026-04-24T15:10:20+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2026-04-24T15:10:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=425087a13e903f70b7f86dc6cbfd0893fb2ef79a'/>
<id>urn:sha1:425087a13e903f70b7f86dc6cbfd0893fb2ef79a</id>
<content type='text'>
The i variable is unused. Likewise for the first assignment to ri.
Instead of an incomplete check that idx is in range, which still
results in a NULL deref if idx &lt; 0, check if ri is not NULL before
accessing, as sk_value() checks the index correctly.

ok jsing kenjiro
</content>
</entry>
<entry>
<title>mlkem: use &lt;openssl/mlkem.h&gt; instead of "mlkem.h"</title>
<updated>2026-04-20T08:14:29+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2026-04-20T08:14:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=052c4cf7f1328bcebfedf3eb9c2c76290dad8e7d'/>
<id>urn:sha1:052c4cf7f1328bcebfedf3eb9c2c76290dad8e7d</id>
<content type='text'>
patch from portable
</content>
</entry>
<entry>
<title>tls_keypair: add missing &lt;limits.h&gt;</title>
<updated>2026-04-20T04:35:00+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2026-04-20T04:35:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=f3c98c4260211cd04d3000ea841e87b85618fda0'/>
<id>urn:sha1:f3c98c4260211cd04d3000ea841e87b85618fda0</id>
<content type='text'>
from bcook kenjiro
</content>
</entry>
<entry>
<title>ec_pmeth: fix 20yo comment: *outlen -&gt; *keylen</title>
<updated>2026-04-20T04:26:12+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2026-04-20T04:26:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=e4bc9bc7b9138edf0b9cbab71d97ecd0dd29c6ac'/>
<id>urn:sha1:e4bc9bc7b9138edf0b9cbab71d97ecd0dd29c6ac</id>
<content type='text'>
</content>
</entry>
<entry>
<title>libtls: consistently handle allocation failures</title>
<updated>2026-04-16T07:35:25+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2026-04-16T07:35:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=8662e35dbd36d8450a6d4c7188a65c580e4b339f'/>
<id>urn:sha1:8662e35dbd36d8450a6d4c7188a65c580e4b339f</id>
<content type='text'>
Use tls_set_errorx() or tls_error_setx() rather than the versions without
x for TLS_ERROR_OUT_OF_MEMORY. ENOMEM adds no further info.

From Michael Forney

ok bcook
</content>
</entry>
<entry>
<title>libtls: use TLS_ERROR_OUT_OF_MEMORY after malloc failure</title>
<updated>2026-04-16T07:33:11+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2026-04-16T07:33:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=8dfa678933bc42faeff1d9406e589c16fac7f60e'/>
<id>urn:sha1:8dfa678933bc42faeff1d9406e589c16fac7f60e</id>
<content type='text'>
tls_config_load_file() hat a spot that used TLS_ERROR_UNKNOWN, so switch
that to the usual error code. Use tls_error_setx() since strerror(ENOMEM)
adds nothing.

From Michael Forney

ok bcook
</content>
</entry>
<entry>
<title>libtls: use tls_error_setx() after BIO_new_mem_buf()</title>
<updated>2026-04-16T07:29:53+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2026-04-16T07:29:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=03c4722ecfb4116b7f9fd10b6a216287a7ecf24d'/>
<id>urn:sha1:03c4722ecfb4116b7f9fd10b6a216287a7ecf24d</id>
<content type='text'>
This is the only place where tls_error_set() was used. While the new length
check now guarantees that the failure is due to ENOMEM, this info does not
add value.

From Michael Forney

ok bcook
</content>
</entry>
<entry>
<title>libtls: prefer x version of error setting</title>
<updated>2026-04-16T07:28:00+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2026-04-16T07:28:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=4ab01251a636fac40d8a39e8cc3ba506580aa79b'/>
<id>urn:sha1:4ab01251a636fac40d8a39e8cc3ba506580aa79b</id>
<content type='text'>
If a check fails and errno is not necessarily set by the previous API call
use tls_set_errorx() or tls_error_setx() since turning an unrelated errno
into an error string is unhelpful.

From Michael Forney

ok bcook
</content>
</entry>
<entry>
<title>libtls: add missing length checks before BIO_new_mem_buf()</title>
<updated>2026-04-16T05:16:48+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2026-04-16T05:16:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=d680a6fb78c5f1a30a0d45de7b989cee9631652a'/>
<id>urn:sha1:d680a6fb78c5f1a30a0d45de7b989cee9631652a</id>
<content type='text'>
Like all proper libcrypto APIs, BIO_new_mem_buf() takes an int as a length
argument. Check the size_t passed in to be at most INT_MAX to avoid issues
with truncation and overflow like it's done everywhere else. After release
this should probably be clamped down further since legitimate files (certs
and keys) are nowhere near this large.

Prompted by a diff by Michael Forney

ok jsing
</content>
</entry>
</feed>
