History log of /openbsd/lib/libcrypto/cms/cms_err.c (Results 1 – 16 of 16)
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 ...


# ead8f799 08-Jul-2023 beck <beck@openbsd.org>

Hide symbols in cms, comp, conf, and buffer

ok jsing@


# 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


# 7de7a297 05-Jun-2020 jsing <jsing@openbsd.org>

Remove remaining error *_str_functs[]

A number of years ago we dropped the concept of having function names in
errors, since it is not that useful and very quickly gets out of sync when
refactoring.

Remove remaining error *_str_functs[]

A number of years ago we dropped the concept of having function names in
errors, since it is not that useful and very quickly gets out of sync when
refactoring. It would seem that some new ones got imported and some missed
the last clean up.

ok tb@ beck@ "kill it with fire"

show more ...


# b82d7de4 11-Aug-2019 jsing <jsing@openbsd.org>

Fix loading of CMS error strings.


# 72419cc7 10-Aug-2019 jsing <jsing@openbsd.org>

More style(9), whitespace and readability fixes.

Files are identical once whitespace and newlines are removed.


# cbf7632f 10-Aug-2019 jsing <jsing@openbsd.org>

First pass at style(9).

Whitespace only and no change according to diff -w.


# a4f38546 10-Aug-2019 jsing <jsing@openbsd.org>

Include cms.h instead of cmserr.h.


# bcc4e92e 10-Aug-2019 jsing <jsing@openbsd.org>

Add $OpenBSD$ tags.


# b8b016bf 10-Aug-2019 jsing <jsing@openbsd.org>

Work towards supporting Cryptographic Message Syntax (CMS) in libcrypto.

Cryptographic Message Syntax (CMS) is a standard for cryptographically
protecting messages, as defined in RFC 5652. It is der

Work towards supporting Cryptographic Message Syntax (CMS) in libcrypto.

Cryptographic Message Syntax (CMS) is a standard for cryptographically
protecting messages, as defined in RFC 5652. It is derived from PKCS #7
version 1.5 and utilises various ASN.1 structures, making it complex and
fairly heavyweight. Various protocols - including RPKI (RFC 6480) - have
been built on top of it, which means it is necessary to support CMS, in
order to support RPKI.

This imports around 6,000 lines of code from OpenSSL 1.1.1, which is still
under the original OpenSSL license. Further work will occur in tree.

Requested by and discussed with many.

ok deraadt@ tb@

show more ...


# 8cf4d6a6 10-Jul-2014 jsing <jsing@openbsd.org>

Explicitly include <openssl/opensslconf.h> in every file that references
an OPENSSL_NO_* define. This avoids relying on something else pulling it
in for us, plus it fixes several cases where the #ifn

Explicitly include <openssl/opensslconf.h> in every file that references
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.

show more ...


# c3d6a26a 12-Jun-2014 deraadt <deraadt@openbsd.org>

tags as requested by miod and tedu


# 0d446b2e 24-May-2014 jsing <jsing@openbsd.org>

KNF.


# ec07fdf1 13-Oct-2012 djm <djm@openbsd.org>

import OpenSSL-1.0.1c


# f1535dc8 01-Oct-2010 djm <djm@openbsd.org>

import OpenSSL-1.0.0a


# 5650a0e1 06-Sep-2008 djm <djm@openbsd.org>

import of OpenSSL 0.9.8h