<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-openbsd/lib/libcrypto/x509, branch master</title>
<subtitle>WireGuard implementation for the OpenBSD kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-openbsd/atom/lib/libcrypto/x509?h=master</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-openbsd/atom/lib/libcrypto/x509?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/'/>
<updated>2021-03-31T16:51:06Z</updated>
<entry>
<title>Provide missing prototype for d2i_DSAPrivateKey_fp(3)</title>
<updated>2021-03-31T16:51:06Z</updated>
<author>
<name>tb</name>
<email>tb@openbsd.org</email>
</author>
<published>2021-03-31T16:51:06Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=c3ab052b76109c12233f48762776fa02fc490035'/>
<id>urn:sha1:c3ab052b76109c12233f48762776fa02fc490035</id>
<content type='text'>
ok bcook inoguchi jsing
</content>
</entry>
<entry>
<title>Fix copy-paste error in previous</title>
<updated>2021-03-19T18:52:14Z</updated>
<author>
<name>tb</name>
<email>tb@openbsd.org</email>
</author>
<published>2021-03-19T18:52:14Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=74808df388a30d1f9ebf77719194a533f9041f83'/>
<id>urn:sha1:74808df388a30d1f9ebf77719194a533f9041f83</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:49Z</updated>
<author>
<name>tobhe</name>
<email>tobhe@openbsd.org</email>
</author>
<published>2021-03-13T23:01:49Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=3746f1b0333604aabaa52b1065fb5be48e5d6292'/>
<id>urn:sha1:3746f1b0333604aabaa52b1065fb5be48e5d6292</id>
<content type='text'>
x509v3_cache_extensions().

ok tb@
</content>
</entry>
<entry>
<title>Zap a useless variable.</title>
<updated>2021-03-12T15:57:30Z</updated>
<author>
<name>tb</name>
<email>tb@openbsd.org</email>
</author>
<published>2021-03-12T15:57:30Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=e8085cf369534cbe18980f85f87ade79cbb383f4'/>
<id>urn:sha1:e8085cf369534cbe18980f85f87ade79cbb383f4</id>
<content type='text'>
suggested by jsing
</content>
</entry>
<entry>
<title>Missing void in function definition</title>
<updated>2021-03-12T15:55:26Z</updated>
<author>
<name>tb</name>
<email>tb@openbsd.org</email>
</author>
<published>2021-03-12T15:55:26Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=f2c079f18bd52a67cc7541ef4ec4aad35eb73503'/>
<id>urn:sha1:f2c079f18bd52a67cc7541ef4ec4aad35eb73503</id>
<content type='text'>
ok jsing
</content>
</entry>
<entry>
<title>Fix checks of memory caps of constraints names</title>
<updated>2021-03-12T15:53:38Z</updated>
<author>
<name>tb</name>
<email>tb@openbsd.org</email>
</author>
<published>2021-03-12T15:53:38Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=42f3108a7d2860fcc392d6a69a9ad058abd50338'/>
<id>urn:sha1:42f3108a7d2860fcc392d6a69a9ad058abd50338</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>
<entry>
<title>Set is_trusted in x509_verify_ctx_add_chain()</title>
<updated>2021-02-26T15:19:41Z</updated>
<author>
<name>tb</name>
<email>tb@openbsd.org</email>
</author>
<published>2021-02-26T15:19:41Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=57f6d6df0d63d97b03e3a21985d780169e9bd905'/>
<id>urn:sha1:57f6d6df0d63d97b03e3a21985d780169e9bd905</id>
<content type='text'>
If we're about to add a chain we have a trust path, so we have at least
one trusted certificate. This fixes a thinko from r1.31 and fixes the
openssl(1) cms verify test.

ok jsing (who had the same diff)
</content>
</entry>
<entry>
<title>Fix two bugs in the legacy verifier</title>
<updated>2021-02-25T17:29:22Z</updated>
<author>
<name>tb</name>
<email>tb@openbsd.org</email>
</author>
<published>2021-02-25T17:29:22Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=77da1e57a26be2f7238e94b154addfc65dcc6445'/>
<id>urn:sha1:77da1e57a26be2f7238e94b154addfc65dcc6445</id>
<content type='text'>
To integrate the new X.509 verifier, X509_verify_cert() was refactored.
The code building chains in the legacy verifier was split into a
separate function. The first bug is that its return value was treated
as a Boolean although it wasn't. Second, the return alone is not enough
to decide whether to carry on the validation or not.

Slightly rearrange things to restore the behavior of the legacy verifier
prior to this refactoring.

Issue found and test case provided by Anton Borowka and jan.

ok jan jsing
</content>
</entry>
<entry>
<title>Rename depth to num_untrusted so it identifies what it actually represents.</title>
<updated>2021-02-25T16:58:59Z</updated>
<author>
<name>jsing</name>
<email>jsing@openbsd.org</email>
</author>
<published>2021-02-25T16:58:59Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=5d6c97755a6b6228e1f7931f69d0ade46cf92c99'/>
<id>urn:sha1:5d6c97755a6b6228e1f7931f69d0ade46cf92c99</id>
<content type='text'>
ok tb@
</content>
</entry>
<entry>
<title>Avoid passing last and depth to x509_verify_cert_error() on ENOMEM.</title>
<updated>2021-02-25T16:57:10Z</updated>
<author>
<name>jsing</name>
<email>jsing@openbsd.org</email>
</author>
<published>2021-02-25T16:57:10Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=d963395a74aa582487bb878f0de671997d3b9a09'/>
<id>urn:sha1:d963395a74aa582487bb878f0de671997d3b9a09</id>
<content type='text'>
In x509_verify_ctx_set_xsc_chain(), an ENOMEM case is currently passing
the last certificate and depth (which is no longer actually depth) to
x509_verify_cert_error(). Given we've hit an ENOMEM situation, neither
of these are useful so remove both.

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