summaryrefslogtreecommitdiff
path: root/Lib/ssl.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-02-17 18:47:54 +0100
committerAntoine Pitrou <solipsis@pitrou.net>2012-02-17 18:47:54 +0100
commita9bf2ac7265c143eb11538a0ecd491d96edbf4da (patch)
treeabfd09cb6b633c82f9b5923b63078ef7dade2588 /Lib/ssl.py
parentf1fd388c775acee4d1e5f560b3ae9dfb9ad7cd16 (diff)
downloadcpython-git-a9bf2ac7265c143eb11538a0ecd491d96edbf4da.tar.gz
Try to really fix compilation failures of the _ssl module under very old OpenSSLs.
Diffstat (limited to 'Lib/ssl.py')
-rw-r--r--Lib/ssl.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/ssl.py b/Lib/ssl.py
index 0282ee924a..e899059bad 100644
--- a/Lib/ssl.py
+++ b/Lib/ssl.py
@@ -68,12 +68,16 @@ from _ssl import (
from _ssl import CERT_NONE, CERT_OPTIONAL, CERT_REQUIRED
from _ssl import (
OP_ALL, OP_NO_SSLv2, OP_NO_SSLv3, OP_NO_TLSv1,
- OP_CIPHER_SERVER_PREFERENCE, OP_SINGLE_DH_USE, OP_SINGLE_ECDH_USE,
+ OP_CIPHER_SERVER_PREFERENCE, OP_SINGLE_DH_USE
)
try:
from _ssl import OP_NO_COMPRESSION
except ImportError:
pass
+try:
+ from _ssl import OP_SINGLE_ECDH_USE
+except ImportError:
+ pass
from _ssl import RAND_status, RAND_egd, RAND_add, RAND_bytes, RAND_pseudo_bytes
from _ssl import (
SSL_ERROR_ZERO_RETURN,