Nick Coghlan added the comment:

The attached patch creates a TLSv1 context at test_ssl import time to see if 
SSLv2 and SSLv3 peers are disallowed by default.

The test expectations for context options, SSLv23 and SSLv3 are then adjusted 
accordingly.

The context options tests are also updated to compare binary strings rather 
than comparing integers directly, as the diff is much nicer with the strings.

Creating the TLSv1 context at import time could be avoided easily enough by 
moving the options flag check into the individual tests, so I'm open to doing 
that if folks would prefer it.

----------
Added file: 
http://bugs.python.org/file39872/issue23965_handle_legacy_ssl_peers_disallowed.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23965>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to