[issue12012] _ssl module doesn't compile with OpenSSL 1.0.0d: SSLv2_method is missing
Antoine Pitrou
report at bugs.python.org
Fri May 6 12:10:39 CEST 2011
Antoine Pitrou <pitrou at free.fr> added the comment:
Does this happen with a released build of OpenSSL? The Debian bug talks about experimental.
+try:
+ from _ssl import PROTOCOL_SSLv2
+ OPENSSL_NO_SSL2 = False
+except ImportError:
+ OPENSSL_NO_SSL2 = True
Please avoid "negative" constants. Calling it HAS_SSLv2 would be fine.
Also, there should be some doc update mentioning that PROTOCOL_SSLv2 is not always present.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12012>
_______________________________________
More information about the Python-bugs-list
mailing list