Turn asserts in ASIdentifierChoice_canonize() into error checks
authortb <tb@openbsd.org>
Fri, 24 Dec 2021 02:23:44 +0000 (02:23 +0000)
committertb <tb@openbsd.org>
Fri, 24 Dec 2021 02:23:44 +0000 (02:23 +0000)
commit920304fa6a24b5094b74afa29d3e6eefa753fb55
tree07cd73e2dd95d980c7e7cc7ec7ffff7d5d4da6b4
parentc89a19ac1276574ce7f5a2e0934f6cc808fda935
Turn asserts in ASIdentifierChoice_canonize() into error checks

The first assert ensures that a stack that was just sorted in a stronger
sense is sorted in a weak sense and the second assert ensures that
the result of the canonization procedure is canonical. All callers check
for error, so these asserts don't do anything useful.

ok jsing
lib/libcrypto/x509/x509_asid.c