Use freezero() with ASN1_ENCODING.
authorjsing <jsing@openbsd.org>
Thu, 12 May 2022 19:24:38 +0000 (19:24 +0000)
committerjsing <jsing@openbsd.org>
Thu, 12 May 2022 19:24:38 +0000 (19:24 +0000)
commit515d0ec8f042562c281242793115c9b61bd2b8ab
tree519dcd999e8c4a4c23ae05a13183c7e9e88c8632
parentc77ab724f0145e63b3ecc727d8947f1130024af2
Use freezero() with ASN1_ENCODING.

While ASN1_ENCODING is currently only used with types that should only
contain public information, we assume that ASN.1 may contain sensitive
information, hence use freezero() here instead of free().

ok deraadt@ tb@
lib/libcrypto/asn1/tasn_utl.c