History log of /openbsd-src/lib/libcrypto/ct/ct_err.c (Results 1 – 8 of 8)
Revision Date Author Comments
# 3dca7526 24-Jun-2024 tb <tb@openbsd.org>

libcrypto: constify most error string tables

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_{funct

libcrypto: constify most error string tables

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->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

show more ...


# aeccd9ed 12-Jul-2022 kn <kn@openbsd.org>

Remove mkerr.pl remnants from LibreSSL

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


# c3eb09e2 08-May-2022 tb <tb@openbsd.org>

Remove openssl/cterr.h and inline it in openssl/ct.h

ok jsing


# 510c74c2 18-Dec-2021 tb <tb@openbsd.org>

Revert license stubs to full licenses in the remaining files.


# c1ab3fc8 05-Dec-2021 tb <tb@openbsd.org>

Add RCS markers


# 32d9a10f 20-Nov-2021 beck <beck@openbsd.org>

Make these files compile - not hooked up to build yet.

ok jsing@ tb@


# 4c53c909 28-Oct-2021 beck <beck@openbsd.org>

Mechanical KNF in preparation for changing


# 137efc4e 28-Oct-2021 beck <beck@openbsd.org>

Import Certificate Transparency verbatim from OpenSSL 1.1.1

This is not yet hooked up and will not compile. Follow on commits
will KNF and then make it build.

ok jsing@ tb@