Refactor ASN.1 template functions before rewriting.
authorjsing <jsing@openbsd.org>
Tue, 17 May 2022 12:23:52 +0000 (12:23 +0000)
committerjsing <jsing@openbsd.org>
Tue, 17 May 2022 12:23:52 +0000 (12:23 +0000)
commit82ebfa931af284a7012446d0530b6c12376bad1a
treee114dfa6bf02a9d618649ec17a5ef0a5e354ef6a
parenta4bef1b5f866481e414771bbc70d40953c00d1e5
Refactor ASN.1 template functions before rewriting.

Change asn1_template_ex_d2i() so that we short circuit in the no explicit
tagging case.

Split out the SET OF/SEQUENCE OF handling from asn1_template_noexp_d2i()
into a asn1_template_stack_of_d2i() function and simplify the remaining
code.

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