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

Fixes #255 -- Add verification methods to the Connection object #844

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pablosole
Copy link

@pablosole pablosole commented Jun 5, 2019

This PR adds the methods set_verify, set_verify_depth, get_verify_mode, and get_verify_depth to the Connection object.

While Connection objects inherit these values from the Context used to create it, they can be changed afterward. This is especially useful when using SNI to require different verification flags depending on the server name (ie. require client certs in some SNIs but not on others).

Fixes #255

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
1 participant