Align X509v3_get_ext_by_critical() with X509v3_get_ext_by_OBJ()
authortb <tb@openbsd.org>
Fri, 12 Jul 2024 08:44:16 +0000 (08:44 +0000)
committertb <tb@openbsd.org>
Fri, 12 Jul 2024 08:44:16 +0000 (08:44 +0000)
commit3e1246eecfad0f9853c81a09d2b6624e8fd3f331
treeee31c29c9f9ee21de5fe0e01427894b570533fa9
parent15a45db01a6b00867f99fe08c3f6bcdf5dc8ae7a
Align X509v3_get_ext_by_critical() with X509v3_get_ext_by_OBJ()

Plus, replace a manual check with a call to X509_EXTENSION_get_critical().

ok jsing
lib/libcrypto/x509/x509_v3.c