<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/ct, branch OPENBSD_7_8_BASE</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=OPENBSD_7_8_BASE</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=OPENBSD_7_8_BASE'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2025-05-10T05:54:39+00:00</updated>
<entry>
<title>Use err_local.h rather than err.h in most places</title>
<updated>2025-05-10T05:54:39+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2025-05-10T05:54:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=41e8f99dd1625a9f0c80ce9d4383e95b18e85709'/>
<id>urn:sha1:41e8f99dd1625a9f0c80ce9d4383e95b18e85709</id>
<content type='text'>
ok jsing
</content>
</entry>
<entry>
<title>Move cryptlib.h to crypto_local.h</title>
<updated>2024-11-05T09:35:40+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-11-05T09:35:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=c2524247aca69c609c97775f05ea83457f5865f4'/>
<id>urn:sha1:c2524247aca69c609c97775f05ea83457f5865f4</id>
<content type='text'>
discussed with jsing
</content>
</entry>
<entry>
<title>Only include cryptlib.h where it's needed</title>
<updated>2024-11-01T18:34:06+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-11-01T18:34:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=f9a68fe280d96dbf02f5338a1e3437222592c77b'/>
<id>urn:sha1:f9a68fe280d96dbf02f5338a1e3437222592c77b</id>
<content type='text'>
Clean up the other includes while there.
</content>
</entry>
<entry>
<title>Unexport some conf layers unused outside of libcrypto</title>
<updated>2024-08-31T09:26:18+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-08-31T09:26:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=465ca291ecb667ff9b02fa56937b3f5ee1ae84cd'/>
<id>urn:sha1:465ca291ecb667ff9b02fa56937b3f5ee1ae84cd</id>
<content type='text'>
imodules are called imodules because they contain Information about
modules that have been Initialized. Which one of these two I it is
is anyone's best guess. Why anything outside of libcrypto would ever
possibly care will also remain a mystery.

Remove the old way of adding a conf module, user data, stop allowing
to set a method (it's opaque now, remember?) and drop a couple bits
more from the public api interface.

ok beck jsing
</content>
</entry>
<entry>
<title>ct.h: move two asterisks to the proper place</title>
<updated>2024-08-08T23:50:29+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-08-08T23:50:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=e755f6ee9bfab63d12a1136307e8805df17147a1'/>
<id>urn:sha1:e755f6ee9bfab63d12a1136307e8805df17147a1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Unify X.509v3 extension methods</title>
<updated>2024-07-13T15:08:58+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-07-13T15:08:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=3a6927c782869fec9a91b17f3757e56538e5d418'/>
<id>urn:sha1:3a6927c782869fec9a91b17f3757e56538e5d418</id>
<content type='text'>
Use C99 initializers for all structs (some were forgotten).
Make all the structs static, call them x509v3_ext_* matching NID_*.
Add accessors called x509v3_ext_method_* and use these to implement
X509V3_EXT_get_nid().

This adds consistency and avoids a few contortions like grouping
a few extensions in arrays to save a couple externs.

ok beck jsing
</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 #includes in ct_sct.c</title>
<updated>2023-07-22T17:02:49+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-07-22T17:02:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=2de05d438fc2f9dd7991c8a1107792eb49afc25a'/>
<id>urn:sha1:2de05d438fc2f9dd7991c8a1107792eb49afc25a</id>
<content type='text'>
This does not need tls1.h (upstream used TLSEXT constants we don't have)
nor does it need evp.h. But it does need asn1.h, objects.h for STACK_OF
and NID_*, among other things and it also uses uint64_t and allocates,
so it needs stdint.h and stdlib.h.
</content>
</entry>
<entry>
<title>Hide symbols in dso and ct</title>
<updated>2023-07-08T07:22:58+00:00</updated>
<author>
<name>beck</name>
<email></email>
</author>
<published>2023-07-08T07:22:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=76f3e45e5e334b3d6431f9c0e76ac816fc551075'/>
<id>urn:sha1:76f3e45e5e334b3d6431f9c0e76ac816fc551075</id>
<content type='text'>
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>
</feed>
