Clean up and simplify OCSP_cert_id_new()
authortb <tb@openbsd.org>
Wed, 28 Aug 2024 06:26:06 +0000 (06:26 +0000)
committertb <tb@openbsd.org>
Wed, 28 Aug 2024 06:26:06 +0000 (06:26 +0000)
commita3eeb048ab99d687936c58fdcc2b89e26c56015c
tree6514b2b10d82af88378074ea4aa3b42be19c1e52
parent25f6f2247bfddf9e4d76fad832844d141b71e449
Clean up and simplify OCSP_cert_id_new()

Use proper NULL checks, set hashAlgorithm with X509_ALGOR_set0_by_nid(),
and avoid a silly digerr label.

ok jsing
lib/libcrypto/ocsp/ocsp_lib.c