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

add Connection.set_verify, fix #255 #1073

Merged
merged 4 commits into from
May 13, 2022
Merged

Conversation

mhils
Copy link
Member

@mhils mhils commented Jan 6, 2022

This PR adds Connection.set_verify and Connection.get_verify_mode to fix #255. Compared to #844 (a previous attempt which went stale) things got a bit simpler as Connection now already has its own _verify_helper and _verify_callback attributes.

I'm happy to add more tests if you feel that would be useful, I did not copy and adapt all the Context.set_verify tests as that felt more like a maintenance burden than anything else. Line coverage is at 100% anyhow.

CI will fail as we depend on the yet-unreleased cryptography bindings. :)

@mhils mhils force-pushed the ssl-set-verify branch 2 times, most recently from 36ff812 to 15062ae Compare May 12, 2022 12:09
@mhils mhils marked this pull request as ready for review May 12, 2022 15:09
@mhils
Copy link
Member Author

mhils commented May 12, 2022

This is ready for review now! :)

@reaperhulk reaperhulk merged commit b31622b into pyca:main May 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Add set_verify method on Connection
2 participants