openssl/crypto/asn1
Clemens Lang 6b93db7bfd x509: Accept 'contentCommitment' as alias
ITU-T X.509 (10/2019) section 9.2.2.3 [1] defines 'contentCommitment' as
the current name for what had previously been called 'nonRepudiation',
and deprecates the old name:

> It is not incorrect to refer to this keyUsage bit using the identifier
> nonRepudiation. However, the use of this identifier has been
> deprecated.

Allow 'contentCommitment' as an alias wherever 'nonRepudiation' has been
accepted before, so that passing

    -addext keyUsage=critical,contentCommitment

works as expected.

Add a test that checks that contentCommitment sets the same keyUsage bit
as nonRepudiation. Adjust the docs to mention the available alias name.

[1]: https://www.itu.int/rec/T-REC-X.509-201910-I/en

Signed-off-by: Clemens Lang <cllang@redhat.com>

Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/28161)
2025-08-11 12:00:38 +02:00
..
a_bitstr.c ossl_i2c_ASN1_BIT_STRING(): Fix a possible heap buffer overflow 2024-12-20 09:47:34 +01:00
a_d2i_fp.c libapps + libcrypto: Silence warnings on Win64 builds 2025-07-02 17:26:26 +02:00
a_digest.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02:00
a_dup.c Copyright year updates 2024-09-05 09:35:49 +02:00
a_gentm.c libapps + libcrypto: Silence warnings on Win64 builds 2025-07-02 17:26:26 +02:00
a_i2d_fp.c Copyright year updates 2024-09-05 09:35:49 +02:00
a_int.c libapps + libcrypto: Silence warnings on Win64 builds 2025-07-02 17:26:26 +02:00
a_mbstr.c libapps + libcrypto: Silence warnings on Win64 builds 2025-07-02 17:26:26 +02:00
a_object.c libapps + libcrypto: Silence warnings on Win64 builds 2025-07-02 17:26:26 +02:00
a_octet.c Following the license change, modify the boilerplates in crypto/asn1/ 2018-12-06 14:24:40 +01:00
a_print.c libapps + libcrypto: Silence warnings on Win64 builds 2025-07-02 17:26:26 +02:00
a_sign.c libapps + libcrypto: Silence warnings on Win64 builds 2025-07-02 17:26:26 +02:00
a_strex.c libapps + libcrypto: Silence warnings on Win64 builds 2025-07-02 17:26:26 +02:00
a_strnid.c Add params precondition in ASN1_STRING_TABLE_add, ASN1_STRING_TABLE_get 2025-06-20 15:58:46 +01:00
a_time.c libapps + libcrypto: Silence warnings on Win64 builds 2025-07-02 17:26:26 +02:00
a_type.c Update copyright year 2021-04-08 13:04:41 +01:00
a_utctm.c libapps + libcrypto: Silence warnings on Win64 builds 2025-07-02 17:26:26 +02:00
a_utf8.c ASN1: limit the Unicode code point range in UTF8_getc() and UTF8_putc() 2021-03-18 14:12:48 +10:00
a_verify.c Copyright year updates 2024-09-05 09:35:49 +02:00
ameth_lib.c Deprecate ASN1_METH internal usage 2025-07-17 11:25:18 -04:00
asn1_err.c Copyright year updates 2024-04-09 13:43:26 +02:00
asn1_gen.c libapps + libcrypto: Silence warnings on Win64 builds 2025-07-02 17:26:26 +02:00
asn1_item_list.c Copyright year updates 2024-09-05 09:35:49 +02:00
asn1_item_list.h Copyright year updates 2024-09-05 09:35:49 +02:00
asn1_lib.c libapps + libcrypto: Silence warnings on Win64 builds 2025-07-02 17:26:26 +02:00
asn1_local.h libapps + libcrypto: Silence warnings on Win64 builds 2025-07-02 17:26:26 +02:00
asn1_parse.c libapps + libcrypto: Silence warnings on Win64 builds 2025-07-02 17:26:26 +02:00
asn_mime.c libapps + libcrypto: Silence warnings on Win64 builds 2025-07-02 17:26:26 +02:00
asn_moid.c Harden asn1 oid loader to invalid inputs 2023-12-13 11:10:36 -05:00
asn_mstbl.c Copyright year updates 2024-04-09 13:43:26 +02:00
asn_pack.c Copyright year updates 2023-09-07 09:59:15 +01:00
bio_asn1.c libapps + libcrypto: Silence warnings on Win64 builds 2025-07-02 17:26:26 +02:00
bio_ndef.c libapps + libcrypto: Silence warnings on Win64 builds 2025-07-02 17:26:26 +02:00
build.info ASN1: rename asn1_par.c to asn1_parse.c for clarity; simplify asn1_parse2() 2021-06-15 14:23:21 +02:00
charmap.h Fix copyright year issues 2022-01-06 09:27:02 +01:00
charmap.pl Add a local perl module to get year last changed 2021-03-31 13:59:53 +02:00
d2i_param.c Update copyright year 2021-06-17 13:24:59 +01:00
d2i_pr.c libapps + libcrypto: Silence warnings on Win64 builds 2025-07-02 17:26:26 +02:00
d2i_pu.c Update copyright year 2022-05-03 13:34:51 +01:00
evp_asn1.c Avoid invoking memcpy if size is zero or the supplied buffer is NULL 2021-08-25 17:02:37 +02:00
f_int.c Copyright year updates 2024-09-05 09:35:49 +02:00
f_string.c Copyright year updates 2024-09-05 09:35:49 +02:00
i2d_evp.c Implement i2d_PKCS8PrivateKey 2025-04-11 11:00:27 +01:00
n_pkey.c Update copyright year 2021-06-17 13:24:59 +01:00
nsseq.c Following the license change, modify the boilerplates in crypto/asn1/ 2018-12-06 14:24:40 +01:00
p5_pbe.c Copyright year updates 2023-09-07 09:59:15 +01:00
p5_pbev2.c Copyright year updates 2024-09-05 09:35:49 +02:00
p5_scrypt.c libapps + libcrypto: Silence warnings on Win64 builds 2025-07-02 17:26:26 +02:00
p8_pkey.c Tolerate PKCS#8 V2 with optional public keys 2025-03-19 12:02:31 +01:00
standard_methods.h Deprecate ASN1_METH internal usage 2025-07-17 11:25:18 -04:00
t_bitst.c x509: Accept 'contentCommitment' as alias 2025-08-11 12:00:38 +02:00
t_pkey.c Reorganize private crypto header files 2019-09-28 20:26:34 +02:00
t_spki.c Update copyright year 2021-09-07 13:35:43 +02:00
tasn_dec.c libapps + libcrypto: Silence warnings on Win64 builds 2025-07-02 17:26:26 +02:00
tasn_enc.c Fix NULL pointer dereference in `asn1_ex_i2c()`, crypto/asn1/tasn_enc.c 2025-03-25 19:53:49 +01:00
tasn_fre.c Copyright year updates 2024-09-05 09:35:49 +02:00
tasn_new.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02:00
tasn_prn.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02:00
tasn_scn.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02:00
tasn_typ.c constify *_dup() and *i2d_*() and related functions as far as possible, introducing DECLARE_ASN1_DUP_FUNCTION 2019-03-06 16:10:09 +00:00
tasn_utl.c libapps + libcrypto: Silence warnings on Win64 builds 2025-07-02 17:26:26 +02:00
tbl_standard.h Update copyright year 2020-10-15 14:10:06 +01:00
x_algor.c Update copyright year 2022-05-03 13:34:51 +01:00
x_bignum.c Explicitly test against NULL; do not use !p or similar 2019-10-09 21:32:15 +02:00
x_info.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02:00
x_int64.c Cast values to match printf format strings. 2022-11-14 07:47:53 +00:00
x_long.c Convert all {NAME}err() in crypto/ to their corresponding ERR_raise() call 2020-11-13 09:35:02 +01:00
x_pkey.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02:00
x_sig.c Reorganize private crypto header files 2019-09-28 20:26:34 +02:00
x_spki.c Following the license change, modify the boilerplates in crypto/asn1/ 2018-12-06 14:24:40 +01:00
x_val.c Following the license change, modify the boilerplates in crypto/asn1/ 2018-12-06 14:24:40 +01:00