Fix X509_get_ext_count() usage
authortb <tb@openbsd.org>
Sat, 3 Feb 2024 14:43:15 +0000 (14:43 +0000)
committertb <tb@openbsd.org>
Sat, 3 Feb 2024 14:43:15 +0000 (14:43 +0000)
commit8bce0c5242ea586811fc25daf24eaf37f3a9a93b
tree37555286e5c67d02f4e457cafa2bcfa405656448
parentc6be5ad7f4af8fd4eee3b94ca04dcc9290a39aff
Fix X509_get_ext_count() usage

It doesn't return a value < 0. If it did, someone could feed rpki-client
a bad cert that makes it error out, which is bad. There are various checks
that will reject a cert without extensions, so we don't need to check this
explicitly.

ok job
usr.sbin/rpki-client/cert.c