<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/dh/dh_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>Add space after commas</title>
<updated>2024-05-19T08:22:40+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-05-19T08:22:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=53a52e123319b9797787cbe9f6b53f6e7e147699'/>
<id>urn:sha1:53a52e123319b9797787cbe9f6b53f6e7e147699</id>
<content type='text'>
</content>
</entry>
<entry>
<title>KNF for dh_err and dsa_err</title>
<updated>2024-05-19T08:21:13+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-05-19T08:21:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=ac37aac3961c480e3851679640791e4a516bdb38'/>
<id>urn:sha1:ac37aac3961c480e3851679640791e4a516bdb38</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Hide symbols in dh</title>
<updated>2023-07-08T15:29:04+00:00</updated>
<author>
<name>beck</name>
<email></email>
</author>
<published>2023-07-08T15:29:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=c15c3edb5607f3e03c47fdea19a5828ad6d9c477'/>
<id>urn:sha1:c15c3edb5607f3e03c47fdea19a5828ad6d9c477</id>
<content type='text'>
ok tb@
</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>Provide DH_check*_ex and many error codes</title>
<updated>2022-01-10T12:00:52+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-01-10T12:00:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=7f7aefb469a9916b1d914a9fabaed99bb909ef8d'/>
<id>urn:sha1:7f7aefb469a9916b1d914a9fabaed99bb909ef8d</id>
<content type='text'>
DH_check{,_pub_key}_ex() wrap their non-ex versions to translate
the flags argument of the original functions into OpenSSL errors.
For this almost a dozen new error codes need to be added.

DH_params_check{,_ex}() is a new version of DH_check that only
performs a cheap subset of the checks.

They are needed to implement EVP_PKEY_{public,param}_check()
(observe the consistent naming) although the actual implementation
of EVP_PKEY_param_check() chose to use DH_check_ex().

As far as I can tell, the only raison d'être of the _ex functions
and error codes is to spew them to stderr in a couple of openssl(1)
commands. This couldn't have been solved differently...

These functions will not be exposed publicly.

ok inoguchi jsing
</content>
</entry>
<entry>
<title>Send the function codes from the error functions to the bit bucket,</title>
<updated>2017-01-29T17:49:23+00:00</updated>
<author>
<name>beck</name>
<email></email>
</author>
<published>2017-01-29T17:49:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=d1f47bd292f36094480caa49ada36b99a69c59b0'/>
<id>urn:sha1:d1f47bd292f36094480caa49ada36b99a69c59b0</id>
<content type='text'>
as was done earlier in libssl. Thanks inoguchi@ for noticing
libssl had more reacharounds into this.
ok jsing@ inoguchi@
</content>
</entry>
<entry>
<title>Explicitly include &lt;openssl/opensslconf.h&gt; in every file that references</title>
<updated>2014-07-10T22:45:58+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2014-07-10T22:45:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=62348213609ef233110561d1a6ed67ad66df1c7e'/>
<id>urn:sha1:62348213609ef233110561d1a6ed67ad66df1c7e</id>
<content type='text'>
an OPENSSL_NO_* define. This avoids relying on something else pulling it
in for us, plus it fixes several cases where the #ifndef OPENSSL_NO_XYZ is
never going to do anything, since OPENSSL_NO_XYZ will never defined, due
to the fact that opensslconf.h has not been included.

This also includes some miscellaneous sorting/tidying of headers.
</content>
</entry>
<entry>
<title>tags as requested by miod and tedu</title>
<updated>2014-06-12T15:49:31+00:00</updated>
<author>
<name>deraadt</name>
<email></email>
</author>
<published>2014-06-12T15:49:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=59f4f2c61d71e266d37dd2fc97615b3fd35b4721'/>
<id>urn:sha1:59f4f2c61d71e266d37dd2fc97615b3fd35b4721</id>
<content type='text'>
</content>
</entry>
<entry>
<title>resolve conflicts</title>
<updated>2012-10-13T21:25:14+00:00</updated>
<author>
<name>djm</name>
<email></email>
</author>
<published>2012-10-13T21:25:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=942650cdef05a877200cb7aff3a075935a5fd0cd'/>
<id>urn:sha1:942650cdef05a877200cb7aff3a075935a5fd0cd</id>
<content type='text'>
</content>
</entry>
</feed>
