<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib, branch tb_20250802</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=tb_20250802</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=tb_20250802'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2025-08-02T06:16:35+00:00</updated>
<entry>
<title>This commit was manufactured by cvs2git to create tag 'tb_20250802'.</title>
<updated>2025-08-02T06:16:35+00:00</updated>
<author>
<name>cvs2svn</name>
<email>admin@example.com</email>
</author>
<published>2025-08-02T06:16:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=a397c95f8aea58533e72379d6e0de12683ecd0dc'/>
<id>urn:sha1:a397c95f8aea58533e72379d6e0de12683ecd0dc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rework PKCS7_simple_smimecap()</title>
<updated>2025-07-31T02:24:21+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2025-07-31T02:24:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=939b14b31a0ec57a91982f54dd055e000bf5f6ac'/>
<id>urn:sha1:939b14b31a0ec57a91982f54dd055e000bf5f6ac</id>
<content type='text'>
This is nearly identical to CMS_add_simple_smimecap(). We can reuse
its doc comment mutatis mutandis and use the same construction.

Maybe this wants deduplicating. Maybe not.

ok kenjiro
</content>
</entry>
<entry>
<title>Rework PKCS7_add1_attrib_digest()</title>
<updated>2025-07-31T02:21:01+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2025-07-31T02:21:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=0422dbe1ad1c175070e7cebc4bbb202b15ffea21'/>
<id>urn:sha1:0422dbe1ad1c175070e7cebc4bbb202b15ffea21</id>
<content type='text'>
There's nothing really wrong here (at least when compared to the rest of
this file an hour or so ago), but we can make this look somewhat more like
code. That there's no bug here is not really related to the fact that it's
an add1 function, not an add0 one. In fact, it's kind of surprising that
the author had an uncharacteristic moment of lucidity and remembered to
free the last argument passed to PKCS7_add_signed_attribute() on failure.

ok kenjiro
</content>
</entry>
<entry>
<title>Rewrite PKCS7_get_smimecap() to use d2i_X509_ALGORS()</title>
<updated>2025-07-31T02:10:55+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2025-07-31T02:10:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=4815d09a66fcc2a3ecabae72d77e841265da2451'/>
<id>urn:sha1:4815d09a66fcc2a3ecabae72d77e841265da2451</id>
<content type='text'>
Since we finally found a use for i2d_X509_ALGORS(), make use of its
sibling here. This avoids some ridiculous contortions in not quite
peak muppet code (obviously this was a first test run for the grand
finale in CMS).

ok kenjiro
</content>
</entry>
<entry>
<title>Plug leaks due to misuse of PKCS7_add_signed_attribute()</title>
<updated>2025-07-31T02:02:35+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2025-07-31T02:02:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=5c9cc2d0035cb59dfcacb47001ca9b8392b3732b'/>
<id>urn:sha1:5c9cc2d0035cb59dfcacb47001ca9b8392b3732b</id>
<content type='text'>
set0/add0 functions that can fail are the worst. Without fail this trips
up both users and authors (by and large these are two identical groups
consisting of a single person), resulting in leaks and double frees.

In today's episode of spelunking in the gruesome gore provided by the
PKCS#7 and Time-Stamp protocol "implementations", we fix a couple of
leaks in PKCS7_add_attrib_smimecap() and ESS_add_signing_cert().

We do so by recalling that there is i2d_X509_ALGORS(), so we might
as well put it to use instead of inlining it poorly (aka, without
error checking). Normalize said error checking and ensure ownership
is handled correctly in the usual single-exit idiom.

ESS_add_signing_cert() can also make use of proper i2d handling, so
it's simpler and correct and in the end looks pretty much the same
as PKCS7_add_attrib_smimecap().

ok kenjiro
</content>
</entry>
<entry>
<title>curve25519.c: zap trailing whitespace introduced in previous</title>
<updated>2025-07-29T10:52:20+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2025-07-29T10:52:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=ec8cce1dd4e99a67543a272dfa89573835b3d118'/>
<id>urn:sha1:ec8cce1dd4e99a67543a272dfa89573835b3d118</id>
<content type='text'>
</content>
</entry>
<entry>
<title>PKCS7_add0_attrib_signing_time: tweak comment</title>
<updated>2025-07-28T04:29:00+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2025-07-28T04:29:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=24f1a240459f5178954a0c2f54c2afdd8a6f6e2e'/>
<id>urn:sha1:24f1a240459f5178954a0c2f54c2afdd8a6f6e2e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Below STANDARDS, reference the two most relevant sections of RFC 5652.</title>
<updated>2025-07-27T19:31:20+00:00</updated>
<author>
<name>schwarze</name>
<email></email>
</author>
<published>2025-07-27T19:31:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=e45df38fdf359c2b4dbbf04d6e24649c51a01b69'/>
<id>urn:sha1:e45df38fdf359c2b4dbbf04d6e24649c51a01b69</id>
<content type='text'>
Given that RFC 5652 does not override the earlier (and simpler)
standards but instead strives to remain compatible, referencing
both the original and the latest versions seems helpful.

OK tb@
</content>
</entry>
<entry>
<title>Remove DES_UNROLL from opensslconf.h.</title>
<updated>2025-07-27T13:27:09+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2025-07-27T13:27:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=599b3fd3a83a856b8a4b92117e0c4e186c9a6f54'/>
<id>urn:sha1:599b3fd3a83a856b8a4b92117e0c4e186c9a6f54</id>
<content type='text'>
This is no longer used in the DES code.

ok tb@
</content>
</entry>
<entry>
<title>Rework DES encryption/decryption loops.</title>
<updated>2025-07-27T13:26:24+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2025-07-27T13:26:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=305717a23aaf1a0716fdfeb5149ac4a9b8e3393a'/>
<id>urn:sha1:305717a23aaf1a0716fdfeb5149ac4a9b8e3393a</id>
<content type='text'>
Use a slightly unrolled loop, which gets us half way between DES_UNROLL and
no DES_UNROLL. While we're not terribly concerned by DES performance, this
gets us a small gain on aarch64 and a small loss on arm. But above all, we
end up with simpler code.

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