summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/stack
diff options
context:
space:
mode:
authortb <>2024-01-10 17:31:28 +0000
committertb <>2024-01-10 17:31:28 +0000
commit34a82e2afb914cfb68c91c2dfffce83ae98a08df (patch)
tree957b6cdb7630afb290d867ebba18eaeb4f705157 /src/lib/libcrypto/stack
parent7ec6c7c4fd30cef0339bceb9e61f996b3177e7a2 (diff)
downloadopenbsd-34a82e2afb914cfb68c91c2dfffce83ae98a08df.tar.gz
openbsd-34a82e2afb914cfb68c91c2dfffce83ae98a08df.tar.bz2
openbsd-34a82e2afb914cfb68c91c2dfffce83ae98a08df.zip
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 'src/lib/libcrypto/stack')
0 files changed, 0 insertions, 0 deletions