Some fixes in ASN1_item_verify()
authortb <tb@openbsd.org>
Thu, 15 Jun 2023 13:58:56 +0000 (13:58 +0000)
committertb <tb@openbsd.org>
Thu, 15 Jun 2023 13:58:56 +0000 (13:58 +0000)
commit880f7c43a35ec527e64baa2d51e97cbe2dfb91e2
treebc79a0886166dab50663a0c40bc3fb507f1ed8de
parent9f02e61912d67262e0ea71cfad4d027f1227febc
Some fixes in ASN1_item_verify()

Switch to using EVP_DigestVerify(). Move the freeing of in where it
belongs (previously it would leak on EVP_DigestVerifyUpdate() failure),
and use the proper idiom for ASN1_item_i2d() error checking.

ok jsing
lib/libcrypto/asn1/asn1_item.c