Deassert x509_policy_level_find()
authortb <tb@openbsd.org>
Fri, 28 Apr 2023 15:30:14 +0000 (15:30 +0000)
committertb <tb@openbsd.org>
Fri, 28 Apr 2023 15:30:14 +0000 (15:30 +0000)
commit5e6c72255d87f2493b684ebc9d02336ad8d12fd1
tree57574a01ca0f90000bd719200d4f93d6827cb5a5
parent8f89bdfa9aabe95f91e32318296bc60eb8d614f8
Deassert x509_policy_level_find()

Move the check that level->nodes is sorted to the call site and make sure
that the logic is preserved and erroring does the right thing.

with beck
ok jsing
lib/libcrypto/x509/x509_policy.c