diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2024-01-10 17:31:29 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2024-01-10 17:31:29 +0000 |
commit | fe9d12fe5fea26f48f05c45b8af28055cbaed320 (patch) | |
tree | a156789100dcd63ff7a2d56e24afd309c4745423 /lib/libcbor | |
parent | 0d90ec4d346d8df611355c11aa21d8d330bb8e42 (diff) |
Rework X509_STORE_CTX_set_{purpose,trust}()
Split the two codepaths in x509_vfy_purpose_inherit() into its two callers.
What remains is gross, but at least a reader has a chance of following all
this nonsense without leaving a significant amount of hair behind.
In short, purpose and trust are only overridden if they're not already
set. Otherwise silently ignore valid purpose and trust identifiers that
were passed in and succeed. Error on almost all invalid trust or purpose
ids, except 0, because... well... who knows, really?
ok jsing
Diffstat (limited to 'lib/libcbor')
0 files changed, 0 insertions, 0 deletions