<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/pkcs12, branch OPENBSD_7_7</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=OPENBSD_7_7</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=OPENBSD_7_7'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2025-03-09T15:45:52+00:00</updated>
<entry>
<title>Reinstate PKCS12_key_gen_uni()</title>
<updated>2025-03-09T15:45:52+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2025-03-09T15:45:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=9971249d16e9e04b0af48f612febcd91710abad9'/>
<id>urn:sha1:9971249d16e9e04b0af48f612febcd91710abad9</id>
<content type='text'>
Unfortunately, this is used in acsm-calibre-plugin, via oscrypto.
Fixes https://github.com/Leseratte10/acsm-calibre-plugin/issues/112

ok jsing
</content>
</entry>
<entry>
<title>unitialized -&gt; uninitialized</title>
<updated>2025-01-06T23:35:25+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2025-01-06T23:35:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=f62644a3fec4a1c2ba18134913f454106247493d'/>
<id>urn:sha1:f62644a3fec4a1c2ba18134913f454106247493d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove copy_bag_attr()</title>
<updated>2024-08-22T12:22:42+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-08-22T12:22:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=de9723d006cceb5ae0915a4891de3155c9232629'/>
<id>urn:sha1:de9723d006cceb5ae0915a4891de3155c9232629</id>
<content type='text'>
It is no longer possible to set an attribute on an EVP_PKEY, so this
code is dead.

ok miod
</content>
</entry>
<entry>
<title>Fix PKCS12_create()</title>
<updated>2024-07-15T15:43:25+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-07-15T15:43:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=beafda5998db0cbb734723cf1f2897bbf6046bdb'/>
<id>urn:sha1:beafda5998db0cbb734723cf1f2897bbf6046bdb</id>
<content type='text'>
This tries to copy some microsoft attributes which are not usually present
and chokes on the now disabled EVP_PKEY_*attr* API. Instead of reviving
about four layers of traps and indirection, just inline the two functions
in a way that should be more obvious.

found by anton via the ruby-openssl tests
ok jsing
</content>
</entry>
<entry>
<title>Hide global _it symbols in pkcs12.h</title>
<updated>2024-07-09T06:13:22+00:00</updated>
<author>
<name>beck</name>
<email></email>
</author>
<published>2024-07-09T06:13:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=a40dc77f12153071625af9215f01a8be78a4539a'/>
<id>urn:sha1:a40dc77f12153071625af9215f01a8be78a4539a</id>
<content type='text'>
ok tb@
</content>
</entry>
<entry>
<title>libcrypto: constify most error string tables</title>
<updated>2024-06-24T06:43:23+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-06-24T06:43:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=c9802a5afe29675d69b605ce906d34fd89c024ac'/>
<id>urn:sha1:c9802a5afe29675d69b605ce906d34fd89c024ac</id>
<content type='text'>
These constitute the bulk of the remaining global mutable state in
libcrypto. This commit moves most of them into data.rel.ro, leaving
out ERR_str_{functs,libraries,reasons} (which require a slightly
different approach) and SYS_str_reasons which is populated on startup.

The main observation is that if ERR_load_strings() is called with a 0 lib
argument, the ERR_STRING_DATA argument is not actually modified. We could
use this fact to cast away const on the caller side and be done with it.
We can make this cleaner by adding a helper ERR_load_const_strings() which
explicitly avoids the assignment to str-&gt;error overriding the error code
already set in the table.

In order for this to work, we need to sprinkle some const in err/err.c.
CMS called ERR_load_strings() with non-0 lib argument, but this didn't
actually modify the error data since it ored in the value already stored
in the table.

Annoyingly, we need to cast const away once, namely in the call to
lh_insert() in int_err_set_item(). Fixing this would require changing
the public API and is going to be tricky since it requires that the
LHASH_DOALL_FN_* types adjust.

ok jsing
</content>
</entry>
<entry>
<title>Fix namespace build</title>
<updated>2024-03-24T06:48:03+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-03-24T06:48:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=5670d7c719ea7eed499f4bf4c0621968b6e5cab0'/>
<id>urn:sha1:5670d7c719ea7eed499f4bf4c0621968b6e5cab0</id>
<content type='text'>
noticed/ok beck
</content>
</entry>
<entry>
<title>Remove more PBE stuff from the public API</title>
<updated>2024-03-02T10:20:27+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-03-02T10:20:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=207b3a197be2d83ff1333f7fa2dccd6d5271b120'/>
<id>urn:sha1:207b3a197be2d83ff1333f7fa2dccd6d5271b120</id>
<content type='text'>
This is still needed internally for CMS and its predecessors. This
removal will enable disentangling some of its innards.

ok jsing
</content>
</entry>
<entry>
<title>Remove a lot of PKCS12 garbage from the public API</title>
<updated>2024-03-02T10:15:16+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-03-02T10:15:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=3660b6a445c7a10167a56fab6d7e882cdf782d91'/>
<id>urn:sha1:3660b6a445c7a10167a56fab6d7e882cdf782d91</id>
<content type='text'>
PKCS12 is a hot mess. Please participate in the survey at the end of
https://www.cs.auckland.ac.nz/~pgut001/pubs/pfx.html to increase its
credibility and unanimity.

ok jsing
</content>
</entry>
<entry>
<title>Use EVP_CIPHER_CTX_legacy_clear() internally</title>
<updated>2024-02-18T15:44:10+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-02-18T15:44:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=f941ba215d7859bf6c6225e88cbbe13260428b8c'/>
<id>urn:sha1:f941ba215d7859bf6c6225e88cbbe13260428b8c</id>
<content type='text'>
ok jsing
</content>
</entry>
</feed>
