[New-bugs-announce] [issue12012] _ssl module doesn't compile with OpenSSL 1.0.0d: SSLv2_method is missing

STINNER Victor report at bugs.python.org
Fri May 6 01:35:41 CEST 2011


New submission from STINNER Victor <victor.stinner at haypocalc.com>:

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.

----------
components: Extension Modules
files: nosslv2.patch
keywords: patch
messages: 135253
nosy: haypo, pitrou
priority: normal
severity: normal
status: open
title: _ssl module doesn't compile with OpenSSL 1.0.0d: SSLv2_method is missing
versions: Python 3.3
Added file: http://bugs.python.org/file21902/nosslv2.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12012>
_______________________________________


More information about the New-bugs-announce mailing list