<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/asn1, branch libressl-v3.5.0</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=libressl-v3.5.0</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=libressl-v3.5.0'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2022-02-12T03:07:24+00:00</updated>
<entry>
<title>Avoid potential single byte overread in asn1_parse2().</title>
<updated>2022-02-12T03:07:24+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2022-02-12T03:07:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=4f6b3f124aaba62ebcf7e04e6536475e0aa3d1d2'/>
<id>urn:sha1:4f6b3f124aaba62ebcf7e04e6536475e0aa3d1d2</id>
<content type='text'>
A fix for this was previously commited in r1.32, however while this added
a bounds check the logic means we still fall through and perform the
overread. Fix the logic such that we only log the error if the bounds check
fails. While here, flip the test around such that we check for validity then
print (which is more readable and matches earlier code).

ok inoguchi@ tb@
</content>
</entry>
<entry>
<title>Add check for BIO_indent return value</title>
<updated>2022-01-20T10:49:56+00:00</updated>
<author>
<name>inoguchi</name>
<email></email>
</author>
<published>2022-01-20T10:49:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=2613c19661207cfecafb7cfef7fb47e0e74600b1'/>
<id>urn:sha1:2613c19661207cfecafb7cfef7fb47e0e74600b1</id>
<content type='text'>
CID 24869

ok jsing@ millert@ tb@
</content>
</entry>
<entry>
<title>Avoid buffer overflow in asn1_parse2</title>
<updated>2022-01-14T23:55:46+00:00</updated>
<author>
<name>inoguchi</name>
<email></email>
</author>
<published>2022-01-14T23:55:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=d00af36e612a46a6acda87f7b192bd40352e4df2'/>
<id>urn:sha1:d00af36e612a46a6acda87f7b192bd40352e4df2</id>
<content type='text'>
asn1_par.c r1.29 changed to access p[0] directly, and this pointer could be
overrun since ASN1_get_object advances pointer to the first content octet.
In case invalid ASN1 Boolean data, it has length but no content, I thought
this could be happen.
Adding check p with tot (diff below) will avoid this failure.

Reported by oss-fuzz 43633 and 43648(later)

ok tb@
</content>
</entry>
<entry>
<title>Move ASN1_BOOLEAN to internal only.</title>
<updated>2022-01-14T08:53:53+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-01-14T08:53:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=816ec8c5aa2b60be0f26dcb7bfd51516e4bcad77'/>
<id>urn:sha1:816ec8c5aa2b60be0f26dcb7bfd51516e4bcad77</id>
<content type='text'>
This moves {d2i,i2d}_ASN1_BOOLEAN() to internal only. They are unused,
but help us testing the encoding.

ok jsing
</content>
</entry>
<entry>
<title>Remove all asn1_* symbols from public visibility</title>
<updated>2022-01-14T08:43:06+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-01-14T08:43:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=3abd0e5eb0202ac6a1161b1192742dc6a649a164'/>
<id>urn:sha1:3abd0e5eb0202ac6a1161b1192742dc6a649a164</id>
<content type='text'>
ok inoguchi jsing
</content>
</entry>
<entry>
<title>Implement new-style OpenSSL BIO callbacks</title>
<updated>2022-01-14T08:40:57+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-01-14T08:40:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=bf7beecb6c75655f21958cd52426578df3f1f307'/>
<id>urn:sha1:bf7beecb6c75655f21958cd52426578df3f1f307</id>
<content type='text'>
This provides support for new-style BIO callbacks in
BIO_{read,write,gets,puts}() and a helper function to
work out whether it should call the new or the old
style callback. It also adds a few typedefs and minor
code cleanup as well as the BIO_{get,set}_callback_ex()

from jsing, ok tb
</content>
</entry>
<entry>
<title>Remove legacy sign/verify from EVP_MD.</title>
<updated>2022-01-14T08:38:06+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-01-14T08:38:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=d5bd2d64a9d8dacaf683f88f953d25c96a7009ff'/>
<id>urn:sha1:d5bd2d64a9d8dacaf683f88f953d25c96a7009ff</id>
<content type='text'>
This removes m_dss.c, m_dss1.c, and m_ecdsa.c and the corresponding
public API EVP_{dss,dss1,ecdsa}().

This is basically the following OpenSSL commit. The mentioned change in
RSA is already present in rsa/rsa_pmeth.c.

ok inoguchi jsing

commit 7f572e958b13041056f377a62d3219633cfb1e8a
Author: Dr. Stephen Henson &lt;steve@openssl.org&gt;
Date:   Wed Dec 2 13:57:04 2015 +0000

    Remove legacy sign/verify from EVP_MD.

    Remove sign/verify and required_pkey_type fields of EVP_MD: these are a
    legacy from when digests were linked to public key types. All signing is
    now handled by the corresponding EVP_PKEY_METHOD.

    Only allow supported digest types in RSA EVP_PKEY_METHOD: other algorithms
    already block unsupported types.

    Remove now obsolete EVP_dss1() and EVP_ecdsa().

    Reviewed-by: Richard Levitte &lt;levitte@openssl.org&gt;

Plus OpenSSL commit 625a9baf11c1dd94f17e5876b6ee8d6271b3921d for m_dss.c
</content>
</entry>
<entry>
<title>Garbage collect the app_items field of ASN1_ADB</title>
<updated>2022-01-14T08:16:13+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-01-14T08:16:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=ec5f7af843436771be5081c868e0fb0b44069ead'/>
<id>urn:sha1:ec5f7af843436771be5081c868e0fb0b44069ead</id>
<content type='text'>
This is unused and was removed in OpenSSL 5b70372d when it was
replaced with an ASN.1 ADB callback (which we don't support).

ok inoguchi jsing
</content>
</entry>
<entry>
<title>Remove NO_ASN1_FIELD_NAMES</title>
<updated>2022-01-14T08:14:48+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-01-14T08:14:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=28d19dc05bbc3e8c5f366d16c78dd0d925631656'/>
<id>urn:sha1:28d19dc05bbc3e8c5f366d16c78dd0d925631656</id>
<content type='text'>
This follows OpenSSL commit 26f2412d.

ok inoguchi jsing
</content>
</entry>
<entry>
<title>Remove obsolete key formats</title>
<updated>2022-01-14T08:12:31+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-01-14T08:12:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=52dcf108ffdd923eecabf36d4015036834354df8'/>
<id>urn:sha1:52dcf108ffdd923eecabf36d4015036834354df8</id>
<content type='text'>
This removes NETSCAPE_X509, NETSCAPE{,_ENCRYPTED}_PKEY, RSA_NET,
Netscape_RSA things. Some of the nasty tentacles that could go in
principle are used in some test suites, so we need to keep them...

All this was removed as part of OpenSSL commit 0bc2f365.

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