Rewrite the asn1_template_*() functions with CBS.
authorjsing <jsing@openbsd.org>
Thu, 19 May 2022 19:31:39 +0000 (19:31 +0000)
committerjsing <jsing@openbsd.org>
Thu, 19 May 2022 19:31:39 +0000 (19:31 +0000)
commitecad301fd8f827aec6161038772a4e991a4afde9
treed352d367bb8367a0480dd6b014ca50e0e6b3635b
parentbde30ff75265d76b905c05d4f3c0ece879ba97d9
Rewrite the asn1_template_*() functions with CBS.

Rewrite the asn1_template_*() functions with CBS, readable variable names
and free then alloc.

This was the last caller of asn1_check_eoc() and asn1_check_tag(), hence
remove them and rename the _cbs suffixed versions in their place.

ok tb@
lib/libcrypto/asn1/tasn_dec.c