<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/x509, branch libressl-v3.3.6</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=libressl-v3.3.6</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=libressl-v3.3.6'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2021-09-30T18:25:43+00:00</updated>
<entry>
<title>Enable X509_V_FLAG_TRUSTED_FIRST by default in the legacy verifier.</title>
<updated>2021-09-30T18:25:43+00:00</updated>
<author>
<name>deraadt</name>
<email></email>
</author>
<published>2021-09-30T18:25:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=8e81e40d0c1296f1862d4a6749edd4cba53c4a23'/>
<id>urn:sha1:8e81e40d0c1296f1862d4a6749edd4cba53c4a23</id>
<content type='text'>
In order to work around the expired DST Root CA X3 certficiate, enable
X509_V_FLAG_TRUSTED_FIRST in the legacy verifier. This means that the
default chain provided by Let's Encrypt will stop at the ISRG Root X1
intermediate, rather than following the DST Root CA X3 intermediate.

Note that the new verifier does not suffer from this issue, so only a
small number of things will hit this code path.

ok millert@ robert@ tb@

this is errata 6.9/018_cert
</content>
</entry>
<entry>
<title>Avoid a potential overread in x509_constraints_parse_mailbox()</title>
<updated>2021-09-26T14:07:40+00:00</updated>
<author>
<name>deraadt</name>
<email></email>
</author>
<published>2021-09-26T14:07:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=35f8ef07a93e59616eb96dc41d4f8e6a21a6319b'/>
<id>urn:sha1:35f8ef07a93e59616eb96dc41d4f8e6a21a6319b</id>
<content type='text'>
The length checks need to be &gt;= rather than &gt; in order to ensure the string
remains NUL terminated. While here consistently check wi before using it
so we have the same idiom throughout this function.

Issue reported by GoldBinocle on GitHub.

ok deraadt@ tb@

this is 6.9 errata 017
</content>
</entry>
<entry>
<title>Switch back to the legacy verifier for the release.</title>
<updated>2021-04-15T14:15:03+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2021-04-15T14:15:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=013c39e97f0af8342cdb560b4a2a45f87602f7b7'/>
<id>urn:sha1:013c39e97f0af8342cdb560b4a2a45f87602f7b7</id>
<content type='text'>
This is disappointing as a lot of work was put into the new verifier
during this cycle. However, there are still too many known bugs and
incompatibilities. It is better to be faced with known broken behavior
than with new broken behavior and to switch now rather than via errata.
This way we have another cycle to iron out the kinks and to fix some of
the remaining bugs.

ok jsing
</content>
</entry>
<entry>
<title>Don't leak param-&gt;name in x509_verify_param_zero()</title>
<updated>2021-04-05T07:02:50+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2021-04-05T07:02:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=57e3ff55d71172acc1caf21e8c346e67b7089676'/>
<id>urn:sha1:57e3ff55d71172acc1caf21e8c346e67b7089676</id>
<content type='text'>
For dynamically allocated verify parameters, param-&gt;name is only ever set
in X509_VERIFY_set1_name() where the old one is freed and the new one is
assigned via strdup(). Setting it to NULL without freeing it beforehand is
a leak.

looks correct to millert, ok inoguchi
</content>
</entry>
<entry>
<title>Provide missing prototype for d2i_DSAPrivateKey_fp(3)</title>
<updated>2021-03-31T16:51:06+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2021-03-31T16:51:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=a2c7dc9f61c905842b4ecaed7ee8beba13289e15'/>
<id>urn:sha1:a2c7dc9f61c905842b4ecaed7ee8beba13289e15</id>
<content type='text'>
ok bcook inoguchi jsing
</content>
</entry>
<entry>
<title>Fix copy-paste error in previous</title>
<updated>2021-03-19T18:52:14+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2021-03-19T18:52:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=7a958181310bd7835ec408fe536f58123486fc76'/>
<id>urn:sha1:7a958181310bd7835ec408fe536f58123486fc76</id>
<content type='text'>
Found the hard way by lists y42 org via an OCSP validation failure that
in turn caused pkg_add over TLS to fail. Detailed report by sthen.

ok sthen
</content>
</entry>
<entry>
<title>Use EXFLAG_INVALID to handle out of memory and parse errors in</title>
<updated>2021-03-13T23:01:49+00:00</updated>
<author>
<name>tobhe</name>
<email></email>
</author>
<published>2021-03-13T23:01:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=0c378cc53837d51d2f3a48a028d7726d2a78d8d7'/>
<id>urn:sha1:0c378cc53837d51d2f3a48a028d7726d2a78d8d7</id>
<content type='text'>
x509v3_cache_extensions().

ok tb@
</content>
</entry>
<entry>
<title>Zap a useless variable.</title>
<updated>2021-03-12T15:57:30+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2021-03-12T15:57:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=266aa0aa5323d0e87855e9e761085c9b055a4f10'/>
<id>urn:sha1:266aa0aa5323d0e87855e9e761085c9b055a4f10</id>
<content type='text'>
suggested by jsing
</content>
</entry>
<entry>
<title>Missing void in function definition</title>
<updated>2021-03-12T15:55:26+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2021-03-12T15:55:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=93c437239760ae62e33d9a36197c37c8dec288b3'/>
<id>urn:sha1:93c437239760ae62e33d9a36197c37c8dec288b3</id>
<content type='text'>
ok jsing
</content>
</entry>
<entry>
<title>Fix checks of memory caps of constraints names</title>
<updated>2021-03-12T15:53:38+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2021-03-12T15:53:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=430ac1ca1c8120f48481984e640aa9977f780961'/>
<id>urn:sha1:430ac1ca1c8120f48481984e640aa9977f780961</id>
<content type='text'>
x509_internal.h defines caps on the number of name constraints and
other names (such as subjectAltNames) that we want to allocate per
cert chain. These limits are checked too late.  In a particularly
silly cert that jan found on ugos.ugm.ac.id 443, we ended up
allocating six times 2048 x509_constraint_name structures before
deciding that these are more than 512.

Fix this by adding a names_max member to x509_constraints_names which
is set on allocation against which each addition of a name is checked.

cluebat/ok jsing
ok inoguchi on earlier version
</content>
</entry>
</feed>
