<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libtls, branch libressl-v3.8.0</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=libressl-v3.8.0</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=libressl-v3.8.0'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2023-05-25T07:46:21+00:00</updated>
<entry>
<title>Forcibly update the EVP_PKEY's internal key</title>
<updated>2023-05-25T07:46:21+00:00</updated>
<author>
<name>op</name>
<email></email>
</author>
<published>2023-05-25T07:46:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=38d31da6097a882f2d9c61b4831257122ba27fc1'/>
<id>urn:sha1:38d31da6097a882f2d9c61b4831257122ba27fc1</id>
<content type='text'>
To aid privilege separation, libtls maintains application-specific data
on the key inside the EVP_PKEY abstraction because the EVP API doesn't
provide a way to do that on the EVP_PKEY itself.

OpenSSL 3 changed behavior of EVP_PKEY_get1_RSA() and related functions.
These now return a struct from some cache.  Thus, modifying the RSA will
no longer modify the EVP_PKEY like it did previously, which was clearly
implied to be the case in the older documentation.
This is a subtle breaking change that affects several applications.

While this is documented, no real solution is provided.  The transition
plan from one OpenSSL major version to the next one tends to involve
many #ifdef in the ecosystem, and the only suggestion provided by the
new documentation is to switch to a completely unrelated, new API.

Instead, forcibly reset the internal key on EVP_PKEY after modification,
this way the change is picked up also by OpenSSL 3.

Fixes issue 1171 in OpenSMTPD-portable

ok tb@, jsing@
</content>
</entry>
<entry>
<title>add missing #include &lt;string.h&gt;; ok tb@</title>
<updated>2023-05-14T07:26:25+00:00</updated>
<author>
<name>op</name>
<email></email>
</author>
<published>2023-05-14T07:26:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=751c792967481bc8add0d09d060248a9d59cfadf'/>
<id>urn:sha1:751c792967481bc8add0d09d060248a9d59cfadf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tls_verify.c: give up on variable alignment in this file</title>
<updated>2023-05-11T07:35:27+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-05-11T07:35:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=01d52bf8f3e9786643d6b21f45d1f3e55558554c'/>
<id>urn:sha1:01d52bf8f3e9786643d6b21f45d1f3e55558554c</id>
<content type='text'>
The previous commit resulted in misalignment, which impacts my OCD worse
than no alignment at all. Alignment wasn't consistently done in this file
anyway. op tells me it won't affect current efforts in reducing the diff.
</content>
</entry>
<entry>
<title>switch two ASN1_STRING_data() to ASN1_STRING_get0_data()</title>
<updated>2023-05-10T13:48:54+00:00</updated>
<author>
<name>op</name>
<email></email>
</author>
<published>2023-05-10T13:48:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=94bce9f5994c2e7ffd19283a376cd464cbb32303'/>
<id>urn:sha1:94bce9f5994c2e7ffd19283a376cd464cbb32303</id>
<content type='text'>
and while here mark as const data.

This diff is actually from gilles@, in OpenSMTPD-portable bundled
libtls.

ok tb@, jsing@
</content>
</entry>
<entry>
<title>Use -Wshadow with clang</title>
<updated>2023-05-05T21:23:02+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-05-05T21:23:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=549cbe92324cb49a0d9fce29e4ece1813496c88b'/>
<id>urn:sha1:549cbe92324cb49a0d9fce29e4ece1813496c88b</id>
<content type='text'>
ok jsing (a very long time ago)
</content>
</entry>
<entry>
<title>Fix error handling in tls_check_common_name()</title>
<updated>2023-05-05T14:05:33+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-05-05T14:05:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=3f6684ef99f4b237e9f27aff6c9cbd5ec55f5939'/>
<id>urn:sha1:3f6684ef99f4b237e9f27aff6c9cbd5ec55f5939</id>
<content type='text'>
A calloc failure should be a fatal error, so make it return -1.
Also switch the default rv to -1 and distinguish error cases with
acceptable situations with goto err/goto done.

ok jsing
</content>
</entry>
<entry>
<title>Bump majors after symbol addition and removal</title>
<updated>2023-04-25T15:54:19+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-04-25T15:54:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=12a3e7c29fbada9585cf0815c5f421e63692ed60'/>
<id>urn:sha1:12a3e7c29fbada9585cf0815c5f421e63692ed60</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Drop X9.31 support from libtls</title>
<updated>2023-04-09T18:26:26+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-04-09T18:26:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=f5072cf9562fff0cb2416b6d99a9975b34d4bbf3'/>
<id>urn:sha1:f5072cf9562fff0cb2416b6d99a9975b34d4bbf3</id>
<content type='text'>
The TLS signer isn't exposed in public API (we should finally fix it...)
and it supports X9.31, a standard that has been retired and deprecated for
a very long time. libcrypto will stop supporting it soon, this step is
needed to prepare userland.

ok jsing
</content>
</entry>
<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>
</feed>
