Details
-
Improvement
-
Status: Closed
-
Major - P3
-
Resolution: Fixed
-
None
-
None
-
None
Description
ssl.SSLContext, introduced in python 3.2, provides a number of advantages over simply calling ssl.wrap_socket every time we need to create a socket. Use it when available.
We'll also implement a fake SSLContext class that mimics the parts of the SSLContext API that are useful for us - and can be supported back to python 2.6.