Rewrite ASN.1 identifier/length parsing in CBS.
authorjsing <jsing@openbsd.org>
Sat, 25 Dec 2021 07:04:03 +0000 (07:04 +0000)
committerjsing <jsing@openbsd.org>
Sat, 25 Dec 2021 07:04:03 +0000 (07:04 +0000)
commit9a10effcec5ce8f732978e29990eb94ca50711a7
tree7abc8623ca5fd6950b268762230f01d29ba3cec2
parentad79662654eb0168a29b119193457b9ee51a9dcf
Rewrite ASN.1 identifier/length parsing in CBS.

Provide internal asn1_get_identifier_cbs() and asn1_get_length_cbs()
functions that are called from asn1_get_object_cbs(). Convert the existing
ASN1_get_object() function so that it calls asn1_get_object_cbs(), before
mapping the result into the API that it implements.

ok tb@
lib/libcrypto/Makefile
lib/libcrypto/asn1/asn1_lib.c [new file with mode: 0644]
lib/libcrypto/asn1/asn1_locl.h
lib/libcrypto/asn1/asn1_old_lib.c