Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve X509VerifyResult #171

Merged
merged 2 commits into from
Oct 11, 2023
Merged

Improve X509VerifyResult #171

merged 2 commits into from
Oct 11, 2023

Conversation

nox
Copy link
Collaborator

@nox nox commented Oct 11, 2023

Instead of making it a c_int wrapper with an OK variant, we make it a type alias for Result<(), X509VerifyError>, where
X509VerifyError only represents failures. This is a breaking change.

We also write bindings for all the existing verify error codes.

This commit separates X509VerifyResult::OK from the rest
of the codes that actually represent errors, using
a Result type as usual.
@nox nox force-pushed the nox/verify-result branch from 08c333a to 26cf6e2 Compare October 11, 2023 10:08
@nox nox merged commit 84a80c1 into cloudflare:master Oct 11, 2023
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants