Clean up X509v3_get_ext_by_OBJ()
authortb <tb@openbsd.org>
Fri, 12 Jul 2024 08:39:54 +0000 (08:39 +0000)
committertb <tb@openbsd.org>
Fri, 12 Jul 2024 08:39:54 +0000 (08:39 +0000)
commit15a45db01a6b00867f99fe08c3f6bcdf5dc8ae7a
treeaf47c875dfbeecd338aa8063f3f10fa13aa9f1e0
parentc31d07462d9616edb1facb148d605cbf92122f40
Clean up X509v3_get_ext_by_OBJ()

Like most of its siblings, this function can be simplified significantly
by making proper use of the API that is being built. Drop unnecessary NULL
checks and other weirdness and add some const correctness.

ok jsing
lib/libcrypto/x509/x509_v3.c