<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/ui, branch libressl-v4.1.2</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=libressl-v4.1.2</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=libressl-v4.1.2'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2025-03-09T15:25:53+00:00</updated>
<entry>
<title>const correct UI_OpenSSL()</title>
<updated>2025-03-09T15:25:53+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2025-03-09T15:25:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=cfae44170b6af9cf26e431260623915320aec739'/>
<id>urn:sha1:cfae44170b6af9cf26e431260623915320aec739</id>
<content type='text'>
ok jsing
</content>
</entry>
<entry>
<title>Garbage collec UI_UTIL remnants</title>
<updated>2024-08-31T10:28:03+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-08-31T10:28:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=a3d07755a8d0db401282e8062b34e00134369199'/>
<id>urn:sha1:a3d07755a8d0db401282e8062b34e00134369199</id>
<content type='text'>
ok beck jsing
</content>
</entry>
<entry>
<title>Neuter the completely broken UI_UTIL_read_pw* API</title>
<updated>2024-08-24T07:50:23+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-08-24T07:50:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=2bc2066f44dd4375713e5adc55eebc1db1395ec7'/>
<id>urn:sha1:2bc2066f44dd4375713e5adc55eebc1db1395ec7</id>
<content type='text'>
Return 0 on success, return &lt;= 0 on failure. Sigh. In particular, if an
allocation failed, the password that no one entered was considered valid.

ok jsing
</content>
</entry>
<entry>
<title>Remove the empty ui_compat.h</title>
<updated>2024-08-10T06:41:49+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-08-10T06:41:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=00708c9d312880823361e1bd53af1d7aa9f14fda'/>
<id>urn:sha1:00708c9d312880823361e1bd53af1d7aa9f14fda</id>
<content type='text'>
unused in ports and on codesearch
</content>
</entry>
<entry>
<title>ui_util.c needs stdio.h and ui.h, but not ui_compat.h and ui_local.h</title>
<updated>2024-08-08T09:56:51+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-08-08T09:56:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=ea8c0a2b64019acbabd82c41ca18c8ae4066af57'/>
<id>urn:sha1:ea8c0a2b64019acbabd82c41ca18c8ae4066af57</id>
<content type='text'>
</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>Move some includes out of OPENSSL_NO_DEPRECATED</title>
<updated>2023-04-18T08:33:43+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-04-18T08:33:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=7c140db45f1d1b8f4daf0a81424b35e3a5ff8e29'/>
<id>urn:sha1:7c140db45f1d1b8f4daf0a81424b35e3a5ff8e29</id>
<content type='text'>
Some headers were included conditionally on OPENSSL_NO_DEPRECATED in hopes
that eventually the mess of everything includes everything will magically
resolve itself. Of course everyone would end up building openssl with
OPENSSL_NO_DEPRECATED over time... Right.

Surprisingly, the ecosystem has come to rely on these implicit inclusions,
so about two dozen ports would fail to build because of this. Patching this
would be easy but really not worth the effort.

ok jsing
</content>
</entry>
<entry>
<title>Expose UI_null()</title>
<updated>2023-03-10T16:41:32+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-03-10T16:41:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=6b84e5290af08a8f2fa2bd7a8638737c2f83a9ec'/>
<id>urn:sha1:6b84e5290af08a8f2fa2bd7a8638737c2f83a9ec</id>
<content type='text'>
</content>
</entry>
<entry>
<title>libressl *_namespace.h: adjust *_ALIAS() to require a semicolon</title>
<updated>2023-02-16T08:38:17+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-02-16T08:38:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=24a27fd0d17d515b00097199de60fa85a76a95df'/>
<id>urn:sha1:24a27fd0d17d515b00097199de60fa85a76a95df</id>
<content type='text'>
LCRYPTO_ALIAS() and LSSL_ALIAS() contained a trailing semicolon.
This does not conform to style(9), breaks editors and ctags and
(most importantly) my workflow. Fix this by neutering them with
asm("") so that -Wpedantic doesn't complain. There's precedent
in libc's namespace.h

fix suggested by &amp; ok jsing
</content>
</entry>
<entry>
<title>spelling fixes; from paul tagliamonte</title>
<updated>2022-12-26T07:18:53+00:00</updated>
<author>
<name>jmc</name>
<email></email>
</author>
<published>2022-12-26T07:18:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=2eb7e5ff6bb69760f9dd4a43e7e3520ebb930120'/>
<id>urn:sha1:2eb7e5ff6bb69760f9dd4a43e7e3520ebb930120</id>
<content type='text'>
i removed the arithmetics -&gt; arithmetic changes, as i felt they
were not clearly correct

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