<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/ct/ct_err.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>2024-06-24T06:43:23+00:00</updated>
<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>Remove mkerr.pl remnants from LibreSSL</title>
<updated>2022-07-12T14:42:50+00:00</updated>
<author>
<name>kn</name>
<email></email>
</author>
<published>2022-07-12T14:42:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=89e42d5857196a8071fbafb5565388d0e20ec32b'/>
<id>urn:sha1:89e42d5857196a8071fbafb5565388d0e20ec32b</id>
<content type='text'>
This script is not used at all and files are edited by hand instead.
Thus remove misleading comments incl. the obsolete script/config.

Feedback OK jsing tb
</content>
</entry>
<entry>
<title>Remove openssl/cterr.h and inline it in openssl/ct.h</title>
<updated>2022-05-08T20:59:32+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-05-08T20:59:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=8ce75307b6eeae36eef3a3458c5163787c3d2fb7'/>
<id>urn:sha1:8ce75307b6eeae36eef3a3458c5163787c3d2fb7</id>
<content type='text'>
ok jsing
</content>
</entry>
<entry>
<title>Revert license stubs to full licenses in the remaining files.</title>
<updated>2021-12-18T16:50:40+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2021-12-18T16:50:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=3596705559bac06b4d47e94fecd56f3676b13e40'/>
<id>urn:sha1:3596705559bac06b4d47e94fecd56f3676b13e40</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add RCS markers</title>
<updated>2021-12-05T09:37:46+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2021-12-05T09:37:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=5ff9dee7ebfd679cd80b880b7d2c7fc874b093bd'/>
<id>urn:sha1:5ff9dee7ebfd679cd80b880b7d2c7fc874b093bd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make these files compile - not hooked up to build yet.</title>
<updated>2021-11-20T01:10:49+00:00</updated>
<author>
<name>beck</name>
<email></email>
</author>
<published>2021-11-20T01:10:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=b7cded0ac3a92a8240de5424e37e204c1f237e33'/>
<id>urn:sha1:b7cded0ac3a92a8240de5424e37e204c1f237e33</id>
<content type='text'>
ok jsing@ tb@
</content>
</entry>
<entry>
<title>Mechanical KNF in preparation for changing</title>
<updated>2021-10-28T11:55:43+00:00</updated>
<author>
<name>beck</name>
<email></email>
</author>
<published>2021-10-28T11:55:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=92391c1802f1d1cd2771f7e48fb0a19e975a26f5'/>
<id>urn:sha1:92391c1802f1d1cd2771f7e48fb0a19e975a26f5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Import Certificate Transparency verbatim from OpenSSL 1.1.1</title>
<updated>2021-10-28T11:21:03+00:00</updated>
<author>
<name>beck</name>
<email></email>
</author>
<published>2021-10-28T11:21:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=3d4365350a2581e12035198600c42bdbbf87c38a'/>
<id>urn:sha1:3d4365350a2581e12035198600c42bdbbf87c38a</id>
<content type='text'>
This is not yet hooked up and will not compile. Follow on commits
will KNF and then make it build.

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