Message135253
It looks like OpenSSL can be compiled without SSLv2 (#ifdef OPENSSL_NO_SSL2). See this bug report:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=612780
When compiling Python, I get the following error:
/home/haypo/prog/HG/cpython/Modules/_ssl.c: In function 'context_new':
/home/haypo/prog/HG/cpython/Modules/_ssl.c:1451:9: warning: implicit declaration of function 'SSLv2_method'
/home/haypo/prog/HG/cpython/Modules/_ssl.c:1451:9: warning: passing argument 1 of 'SSL_CTX_new' makes pointer from integer without a cast
/usr/include/openssl/ssl.h:1469:10: note: expected 'const struct SSL_METHOD *' but argument is of type 'int'
*** WARNING: renaming "_ssl" since importing it failed: build/lib.linux-x86_64-3.3-pydebug/_ssl.cpython-33dm.so: undefined symbol: SSLv2_method
See also issue #9415.
---
Attached patch makes ssl.PROTOCOL_SSLv2 optional.
I don't know what to do with @skip_if_broken_ubuntu_ssl in test_ssl.py. |
|
Date |
User |
Action |
Args |
2011-05-05 23:35:41 | vstinner | set | recipients:
+ vstinner, pitrou |
2011-05-05 23:35:41 | vstinner | set | messageid: <1304638541.01.0.0335102300468.issue12012@psf.upfronthosting.co.za> |
2011-05-05 23:35:39 | vstinner | link | issue12012 messages |
2011-05-05 23:35:38 | vstinner | create | |
|