Author: Amaury Forgeot d'Arc <amaur...@gmail.com>
Branch: py3k
Changeset: r57869:02860bde5a0f
Date: 2012-10-07 10:56 +0200
http://bitbucket.org/pypy/pypy/changeset/02860bde5a0f/

Log:    CPython defines OP_ALL differently, see CPython Issue #13885.

diff --git a/pypy/module/_ssl/interp_ssl.py b/pypy/module/_ssl/interp_ssl.py
--- a/pypy/module/_ssl/interp_ssl.py
+++ b/pypy/module/_ssl/interp_ssl.py
@@ -61,7 +61,7 @@
 constants["PROTOCOL_TLSv1"]  = PY_SSL_VERSION_TLS1
 
 # protocol options
-constants["OP_ALL"] = SSL_OP_ALL
+constants["OP_ALL"] = SSL_OP_ALL & ~SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS
 constants["OP_NO_SSLv2"] = SSL_OP_NO_SSLv2
 constants["OP_NO_SSLv3"] = SSL_OP_NO_SSLv3
 constants["OP_NO_TLSv1"] = SSL_OP_NO_TLSv1
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to