Consolidate ASN.1 universal tag type data.
authorjsing <jsing@openbsd.org>
Tue, 14 Dec 2021 17:35:21 +0000 (17:35 +0000)
committerjsing <jsing@openbsd.org>
Tue, 14 Dec 2021 17:35:21 +0000 (17:35 +0000)
commit7be7ee87aa5aff9ce8f4fffb181f14b149919ad9
treea858cfede8cbc8dca5c5c8c4e97bd1aef88aef47
parent17ab3ed245fdff4505a18230be75c2bf10e1b369
Consolidate ASN.1 universal tag type data.

There are currently three different tables in three different files that
contain information about ASN.1 universal class tag types. Range checking
is also implemented in three different places (with different
implementations).

Consolidate all of this into a single table, provide a lookup function that
deals with the range checks and wrappers to deal with specific types.

ok inoguchi@ tb@
lib/libcrypto/Makefile
lib/libcrypto/asn1/a_strex.c
lib/libcrypto/asn1/asn1_locl.h
lib/libcrypto/asn1/asn1_par.c
lib/libcrypto/asn1/asn1_types.c [new file with mode: 0644]
lib/libcrypto/asn1/tasn_dec.c