glyph / txsni

Simple support for running a TLS server with Twisted.
MIT License
25 stars 10 forks source link

Support switching verification modes #2

Open mithrandi opened 9 years ago

mithrandi commented 9 years ago

It turns out that doing set_context on a connection does not update the verification settings. selectContext should probably do something like:

connection.set_verify(context.get_verify_mode(), context.get_verify_callback()); connection.set_verify_depth(context.get_verify_depth()) except that the bindings for doing some of this are missing at the moment (see pyca/pyopenssl#255).

glyph commented 8 years ago

What the heck :-(