Check X509_digest() return in x509v3_cache_extensions()
authortb <tb@openbsd.org>
Fri, 18 Aug 2023 08:42:41 +0000 (08:42 +0000)
committertb <tb@openbsd.org>
Fri, 18 Aug 2023 08:42:41 +0000 (08:42 +0000)
commit5f814157b83ec4ae2a3c04e126a9a42f18a192c8
treecbe29f16366278ac29c1e9ca0b2a5379f06bb385
parent85cf58d9befc305f49d3476ea37e80f702e80ef7
Check X509_digest() return in x509v3_cache_extensions()

On failure invalidate the cert with EXFLAG_INVALID. It's unlikely that
a cert would make it through to the end of this function without setting
the flag, but it's bad style anyway.

ok jsing
lib/libcrypto/x509/x509_purp.c