Simplify X509_ATTRIBUTE ASN.1 encoding.
authorjsing <jsing@openbsd.org>
Mon, 9 May 2022 19:19:33 +0000 (19:19 +0000)
committerjsing <jsing@openbsd.org>
Mon, 9 May 2022 19:19:33 +0000 (19:19 +0000)
commitab72b8b8c221a7e276a078466106e0297ab6d900
treec0f43aa2acb7b577e43dac7061c5bac5b9351db2
parent8f0bc53506660c2f75afb7c77dc58a763fe77d04
Simplify X509_ATTRIBUTE ASN.1 encoding.

For some unknown historical reason, X509_ATTRIBUTE allows for a single
ASN.1 value or an ASN.1 SET OF, rather than requiring an ASN.1 SET OF.
Simplify encoding and remove support for single values - this is similar
to OpenSSL e20b57270dec.

This removes the last use of COMBINE in the ASN.1 decoder.

ok tb@
lib/libcrypto/asn1/t_req.c
lib/libcrypto/asn1/x_attrib.c
lib/libcrypto/pkcs12/p12_attr.c
lib/libcrypto/pkcs7/pk7_doit.c
lib/libcrypto/x509/x509_att.c
lib/libcrypto/x509/x509_lcl.h