mirror of
https://github.com/python/cpython.git
synced 2025-08-24 18:55:00 +00:00
Try to really fix compilation failures of the _ssl module under very old OpenSSLs.
This commit is contained in:
parent
f1fd388c77
commit
a9bf2ac726
2 changed files with 11 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue