Add set_verify method on Connection · Issue #255 · pyca/pyopenssl (original) (raw)

When changing the context with set_context, the verify mode/callback is not updated from the new context, you need to call SSL_set_verify on the connection to update it.

This function is not currently exposed by Cryptography, so it will need to be added there too.