Split X509_get_ext_count() out of for loop again
authortb <tb@openbsd.org>
Sun, 4 Feb 2024 07:43:27 +0000 (07:43 +0000)
committertb <tb@openbsd.org>
Sun, 4 Feb 2024 07:43:27 +0000 (07:43 +0000)
commit28d6404fff3be532e2c4bfb01943f6bd5eeb5c3f
tree7e7fecf20c054149b7780998866214232e4985f1
parent851cae3d0655c5e6b044d9ebbf0b19fea2600f56
Split X509_get_ext_count() out of for loop again

The compiler can't know that the count doesn't change, so avoid evaluating
X509_get_ext_count() in each iteration. Also use a separate loop variable
in the ASid non-inheritance check to avoid a silly cast.

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