Ensure ASN.1 types are appropriately encoded.
authorjsing <jsing@openbsd.org>
Sat, 3 Sep 2022 18:52:18 +0000 (18:52 +0000)
committerjsing <jsing@openbsd.org>
Sat, 3 Sep 2022 18:52:18 +0000 (18:52 +0000)
commit98a0616a27a817d08e2243f4d72decdefe8f0ace
tree18f18fbc20967e95b6932385211aa90968f423b3
parent0dc53d81fb63707570f48ba44791ade47cee4cab
Ensure ASN.1 types are appropriately encoded.

Per X.690, some ASN.1 types must be primitive encoded, some must be
constructed and some may be either. Add this data to our types table
and check the encoding against this information when decoding.

ok tb@
lib/libcrypto/asn1/asn1_locl.h
lib/libcrypto/asn1/asn1_types.c
lib/libcrypto/asn1/tasn_dec.c