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

2011-05-22 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset d5771ed4ec4e by Victor Stinner in branch '2.7':
Issue #12012: test_ssl uses test_support.import_module()
http://hg.python.org/cpython/rev/d5771ed4ec4e

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12012
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-05-22 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

 Victor, you broke the Solaris gcc buildbot on 2.7.

It should be fixed by d5771ed4ec4e.

--
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12012
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-05-21 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Victor, you broke the Solaris gcc buildbot on 2.7.
http://www.python.org/dev/buildbot/all/builders/sparc%20solaris10%20gcc%202.7/builds/837

--
assignee:  - haypo
stage: patch review - committed/rejected
status: closed - open

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12012
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-05-09 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset b7abf0590e1c by Victor Stinner in branch '3.1':
Issue #12012: ssl.PROTOCOL_SSLv2 becomes optional
http://hg.python.org/cpython/rev/b7abf0590e1c

New changeset 20beec22764f by Victor Stinner in branch '3.2':
(Merge 3.1) Issue #12012: ssl.PROTOCOL_SSLv2 becomes optional
http://hg.python.org/cpython/rev/20beec22764f

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12012
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-05-09 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 3c87a13980be by Victor Stinner in branch '2.7':
(Merge 3.1) Issue #12012: ssl.PROTOCOL_SSLv2 becomes optional
http://hg.python.org/cpython/rev/3c87a13980be

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12012
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-05-09 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

 Since it's a bugfix, it should probably go into all branches.

Fixed in 2.7, 3.1, 3.2, 3.3.

--
resolution:  - fixed
status:  - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12012
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-05-08 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

Updated patch.

Note: I tried to keep the same enum values for py_ssl_version, it's maybe 
useless and so =1 can be removed.

--
Added file: http://bugs.python.org/file21938/nosslv2-2.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12012
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-05-08 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@haypocalc.com:


Removed file: http://bugs.python.org/file21902/nosslv2.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12012
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-05-08 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

 Updated patch.
 
 Note: I tried to keep the same enum values for py_ssl_version, it's
 maybe useless and so =1 can be removed.

Thank you! PROTOCOL_NAMES should stay private and therefore be named
_PROTOCOL_NAMES, IMHO.
Keeping the same enum values is worthwhile, I think.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12012
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-05-08 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 5296c3e2f166 by Victor Stinner in branch 'default':
Issue #12012: ssl.PROTOCOL_SSLv2 becomes optional
http://hg.python.org/cpython/rev/5296c3e2f166

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12012
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-05-08 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@haypocalc.com:


--
resolution:  - fixed
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12012
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-05-08 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

 New changeset 5296c3e2f166 by Victor Stinner in branch 'default':
 Issue #12012: ssl.PROTOCOL_SSLv2 becomes optional
 http://hg.python.org/cpython/rev/5296c3e2f166

Since it's a bugfix, it should probably go into all branches.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12012
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-05-08 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@haypocalc.com:


--
resolution: fixed - 
status: closed - 

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12012
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-05-07 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

 Please avoid negative constants. Calling it HAS_SSLv2 would be fine.

I reused the term from ssl.h (#ifdef OPENSSL_NO_SSL2), but yes we can use a 
different name.

 Also, there should be some doc update mentioning that PROTOCOL_SSLv2
 is not always present.

Ok, I will do that.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12012
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-05-07 Thread Peter Eisentraut

Changes by Peter Eisentraut pete...@gmx.net:


--
nosy: +petere

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12012
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-05-06 Thread Antoine Pitrou

Antoine Pitrou pit...@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 rep...@bugs.python.org
http://bugs.python.org/issue12012
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-05-06 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
stage:  - patch review
versions: +Python 2.7, Python 3.1, Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12012
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-05-06 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
nosy: +eric.araujo

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12012
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-05-06 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

The original bug requesting that SSLv2 be disabled is #589706; the updated 
openssl package with this change is in Debian unstable and testing now.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12012
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-05-05 Thread STINNER Victor

New submission from STINNER Victor victor.stin...@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 rep...@bugs.python.org
http://bugs.python.org/issue12012
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com