Replace asn1_tlc_clear and asn1_tlc_clear_nc macros with a function.
authorjsing <jsing@openbsd.org>
Fri, 3 Dec 2021 17:27:34 +0000 (17:27 +0000)
committerjsing <jsing@openbsd.org>
Fri, 3 Dec 2021 17:27:34 +0000 (17:27 +0000)
commitf9c88cf6cf5d85e657a438f14f370e813d29dc86
tree81f0924c5b43ff20257b87dbba300d317b4164f5
parent9014c085e6a81650b02ef748d7d829f0edb9842f
Replace asn1_tlc_clear and asn1_tlc_clear_nc macros with a function.

Call the replacement asn1_tlc_invalidate() since it does not actually
clear the ASN1_TLC.

While here, name the ASN1_TLC variables consistently as ctx, remove a
pointless comment and simplify ASN1_item_d2i() slightly.

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