<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/usr.bin/openssl/ca.c, branch OPENBSD_7_9</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2025-12-21T07:14:47+00:00</updated>
<entry>
<title>Reimplement ASN1_PRINTABLE_type() dance in ca.c</title>
<updated>2025-12-21T07:14:47+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2025-12-21T07:14:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=f6a49b32fda99b726ad5b4434bcade613dccf49e'/>
<id>urn:sha1:f6a49b32fda99b726ad5b4434bcade613dccf49e</id>
<content type='text'>
In ca.c, there is some minimal validation of strings in the subject of
a certificate. ASN1_PRINTABLE_type() is silly API that only exists for
this one call. I want to remove a_print.c in the next major bump.

ASN1_PRINTABLE_type() returns V_ASN1_PRINTABLESTRING if all characters
belong to the specific subset of ASCII listed in X.680, 41.4, Table 10.
Otherwise it returns V_ASN1_T61STRING or V_ASN1_IA5STRING depending on
whether there is a character with the high bit set or not.

With this in mind, the logic in ca.c comes down to this: blindly allow
UTF-8, BMP and T61 strings. All other strings get rejected if the high
bit of some character is set, or if the string is printable and there
is a non-printable character.

ok jsing kenjiro
</content>
</entry>
<entry>
<title>openssl ca: mechanical change to stop reaching into ASN1_STRING</title>
<updated>2025-11-27T08:24:30+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2025-11-27T08:24:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=9c2fb2d749c8780ed1220475b6050f4dbebf9d0a'/>
<id>urn:sha1:9c2fb2d749c8780ed1220475b6050f4dbebf9d0a</id>
<content type='text'>
ok kenjiro
</content>
</entry>
<entry>
<title>Remove openssl ca -msie_hack</title>
<updated>2025-04-14T08:39:27+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2025-04-14T08:39:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=2dff8fa459400ed4bacc7ed81ae06ff6c0e179a3'/>
<id>urn:sha1:2dff8fa459400ed4bacc7ed81ae06ff6c0e179a3</id>
<content type='text'>
The nineties called and wanted their garbage back.

ok jsing
</content>
</entry>
<entry>
<title>openssl ca: use BN_bn2hex() rather than reimplementing it</title>
<updated>2025-02-25T09:49:33+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2025-02-25T09:49:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=bb2ae631a25155bd33aa98bd4c66dfc4a50f454e'/>
<id>urn:sha1:bb2ae631a25155bd33aa98bd4c66dfc4a50f454e</id>
<content type='text'>
ok jsing
</content>
</entry>
<entry>
<title>Remove spkac handling from openssl(1) ca</title>
<updated>2024-07-08T05:56:17+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-07-08T05:56:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=466fd35ccdee1cbe42dfc7f2e4d3225c07427279'/>
<id>urn:sha1:466fd35ccdee1cbe42dfc7f2e4d3225c07427279</id>
<content type='text'>
This is very poorly written code and now the only consumer of some
public API that should not have survived the turn of the millenium.

ok jsing
</content>
</entry>
<entry>
<title>openssl ca: avoid double free for spkac files without default section</title>
<updated>2024-06-23T07:50:52+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-06-23T07:50:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=2ce7c4a21e1cf197d94a02dec415e9f55a6a7294'/>
<id>urn:sha1:2ce7c4a21e1cf197d94a02dec415e9f55a6a7294</id>
<content type='text'>
ok jsing
</content>
</entry>
<entry>
<title>Zap a useless comment followed by a stray semicolon</title>
<updated>2024-02-04T13:08:29+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-02-04T13:08:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=0e3ffc21b85538d145bb3e56108f842f7735e886'/>
<id>urn:sha1:0e3ffc21b85538d145bb3e56108f842f7735e886</id>
<content type='text'>
Noticed by Christian Andersen
</content>
</entry>
<entry>
<title>Kill last user of ASN1_time_parse() in the tree</title>
<updated>2023-11-13T12:43:08+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-11-13T12:43:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=8161eba73aec9d6c1be3143e72d0f95387a0aafe'/>
<id>urn:sha1:8161eba73aec9d6c1be3143e72d0f95387a0aafe</id>
<content type='text'>
ASN1_time_parse() was useful while OpenSSL didn't have something sort of
equivalent, but now they do. Let's retire ASN1_time_parse() to internal.
This will require some patching in ports, but shrug.

ok beck
</content>
</entry>
<entry>
<title>Teach openssl ca about Ed25519 certificates</title>
<updated>2023-07-02T07:08:57+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-07-02T07:08:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=da52349d5b9adc2e36356a6b6bbe1116e2fef916'/>
<id>urn:sha1:da52349d5b9adc2e36356a6b6bbe1116e2fef916</id>
<content type='text'>
This adds a few logic curlies to end up setting the EVP_MD to EVP_md_null()
as required by the API. This way ASN1_item_sign() now knows how to behave.

"ok = (rv == 2);" beck
</content>
</entry>
<entry>
<title>Rename struct ${app}_config to plain cfg</title>
<updated>2023-03-06T14:32:06+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-03-06T14:32:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=2ba7dcfcbc2ef5aaeb8eb14f36f83bd57c22bcae'/>
<id>urn:sha1:2ba7dcfcbc2ef5aaeb8eb14f36f83bd57c22bcae</id>
<content type='text'>
All the structs are static and we need to reach into them many times.
Having a shorter name is more concise and results in less visual clutter.
It also avoids many overlong lines and we will be able to get rid of some
unfortunate line wrapping down the road.

Discussed with jsing
</content>
</entry>
</feed>
