This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients pitrou, vstinner
Date 2011-05-05.23:35:38
SpamBayes Score 0.0001233096
Marked as misclassified No
Message-id <1304638541.01.0.0335102300468.issue12012@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2011-05-05 23:35:41vstinnersetrecipients: + vstinner, pitrou
2011-05-05 23:35:41vstinnersetmessageid: <1304638541.01.0.0335102300468.issue12012@psf.upfronthosting.co.za>
2011-05-05 23:35:39vstinnerlinkissue12012 messages
2011-05-05 23:35:38vstinnercreate