<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/asn1, branch libressl-v3.8.2</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=libressl-v3.8.2</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=libressl-v3.8.2'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2023-10-01T22:14:36+00:00</updated>
<entry>
<title>Fix a copy-paste bug in ASN1_TIME_compare()</title>
<updated>2023-10-01T22:14:36+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-10-01T22:14:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=801723e5c82440629905965bd58e34dc2f2d62a7'/>
<id>urn:sha1:801723e5c82440629905965bd58e34dc2f2d62a7</id>
<content type='text'>
ASN1_TIME_compare() compares two times t1 and t2. Due to a copy-paste
error, we would do ASN1_time_parse(t1-&gt;data, t2-&gt;length, &amp;tm2, t2-&gt;type)

Now if t1 is a UTCTime (length 13) and t2 is a GeneralizedTime (length 15),
the worst that could happen is a 2-byte out-of-bounds read. Fortunately, t1
will already have parsed as a UTCTime, so it will have a Z where there
should be the first digit of the seconds for a GeneralizedTime and we will
error out.

Now if both t1 and t2 have the same type, we will parse t1's data twice
and we will return an incorrect comparison. This could have some security
impact if anything relied on this function for security purposes. It is
unused in our tree and unused in our ports tree ports and the only consumer
I could find was some MongoDB things doing OCSP, so this won't be too bad.

Then of course there's also the language bindings.

Issue reported by Duncan Thomson at esri dot com via libressl-security

ok beck deraadt
</content>
</entry>
<entry>
<title>Ensure no memory is leaked after passing NULL to ASN1_TIME_normalize()</title>
<updated>2023-08-30T10:13:12+00:00</updated>
<author>
<name>job</name>
<email></email>
</author>
<published>2023-08-30T10:13:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=1b9ecfa7cff0a57d523522d8d77745aaebf3da47'/>
<id>urn:sha1:1b9ecfa7cff0a57d523522d8d77745aaebf3da47</id>
<content type='text'>
OK tb@
</content>
</entry>
<entry>
<title>Zap extra parens</title>
<updated>2023-08-15T18:05:15+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-08-15T18:05:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=2241a2de986c88d243f72c0f2b18a8efd3478520'/>
<id>urn:sha1:2241a2de986c88d243f72c0f2b18a8efd3478520</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix typo in previous</title>
<updated>2023-08-15T17:40:06+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-08-15T17:40:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=a4680335ab2e7a1fe55d95eb8ed3999a07570ce9'/>
<id>urn:sha1:a4680335ab2e7a1fe55d95eb8ed3999a07570ce9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Avoid undefined behavior with memcmp(NULL, x, 0) in ASN1_STRING_cmp()</title>
<updated>2023-08-15T17:38:00+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-08-15T17:38:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=cc9f1360c7d1412dcf9c79e0d37328353a91d6e7'/>
<id>urn:sha1:cc9f1360c7d1412dcf9c79e0d37328353a91d6e7</id>
<content type='text'>
ok jsing miod
</content>
</entry>
<entry>
<title>remove X509_ATTRIBUTE_SET_it</title>
<updated>2023-07-28T13:30:07+00:00</updated>
<author>
<name>jsg</name>
<email></email>
</author>
<published>2023-07-28T13:30:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=3533ccfbce70fcfaf4223aaa815d97590210a9f9'/>
<id>urn:sha1:3533ccfbce70fcfaf4223aaa815d97590210a9f9</id>
<content type='text'>
public symbol removed in April
ok tb@
</content>
</entry>
<entry>
<title>Remove more ASN1_BIT_STRING API</title>
<updated>2023-07-28T10:33:13+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-07-28T10:33:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=b8d30e719ace66cc62ab262ddf8f89df4046d5e8'/>
<id>urn:sha1:b8d30e719ace66cc62ab262ddf8f89df4046d5e8</id>
<content type='text'>
This removes ASN1_BIT_STRING_name_print(), ASN1_BIT_STRING_{num,set}_asc().
Before trust was properly handled using OIDs, there was a period where it
used bit strings. The actual interfaces used in openssl x509 were removed,
but the functions they wrapped remained unused for the next 24 years.

ok jsing
</content>
</entry>
<entry>
<title>Remove ASN1_BIT_STRING_check</title>
<updated>2023-07-28T10:30:16+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-07-28T10:30:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=e2147417de87aad6ba65ecc032ecbc394ba9b139'/>
<id>urn:sha1:e2147417de87aad6ba65ecc032ecbc394ba9b139</id>
<content type='text'>
This was added with the TS code for no discernible reason. I could not
find a single consumer. In the unlikely event that you need this, it is
easy enough to write a better version of it yourself.

ok jsing
</content>
</entry>
<entry>
<title>Remove ASN1_bn_print() and ASN1_buf_print()</title>
<updated>2023-07-28T10:02:11+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-07-28T10:02:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=f72d08156c2afabfd1c38468eca631a5afed0f79'/>
<id>urn:sha1:f72d08156c2afabfd1c38468eca631a5afed0f79</id>
<content type='text'>
ASN1_bn_print() is a hilariously bad API that was replaced with a saner
interface internally. ASN1_buf_print() isn't terrible, but it is too
specialized to be of real use. It was only exposed because ASN1_bn_print()
was already there. Its only use had been in the EdDSA printing code before
it was replaced with an internal helper.

ok jsing
</content>
</entry>
<entry>
<title>Make ASN1_{primitive,template}_* internal</title>
<updated>2023-07-28T10:00:10+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-07-28T10:00:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=6602851323526cd6d822de23c4b19db917aa927a'/>
<id>urn:sha1:6602851323526cd6d822de23c4b19db917aa927a</id>
<content type='text'>
These were long removed from the public OpenSSL API, so we can do the
same. Remove ASN1_template_{d2i,i2d}() - those are unused internally.

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