- 
    Type:Improvement 
- 
    Resolution: Done
- 
    Priority:Major - P3 
- 
    Affects Version/s: None
- 
    Component/s: None
- 
    None
- 
        None
- 
        None
- 
        None
- 
        None
- 
        None
- 
        None
- 
        None
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.