Provide c2i_ASN1_ENUMERATED_cbs() and call it from asn1_c2i_primitive().
authorjsing <jsing@openbsd.org>
Sat, 3 Sep 2022 18:45:51 +0000 (18:45 +0000)
committerjsing <jsing@openbsd.org>
Sat, 3 Sep 2022 18:45:51 +0000 (18:45 +0000)
commit3664b3a8e4baf0ba863d0f7825a510d96896305f
treef0ca6db4419eea6b0586ce586d8fffffcc35cf8e
parent78964d1a8f285b216659574e66d727efefa252a1
Provide c2i_ASN1_ENUMERATED_cbs() and call it from asn1_c2i_primitive().

This avoids asn1_c2i_primitive() from needing knowledge about the internals
of ASN1_INTEGER and ASN1_ENUMERATED.

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