Skip to content

Commit 3e2500d

Browse files
committed
merge 3.4
2 parents de8eca4 + 7bcf9a5 commit 3e2500d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Lib/ssl.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,6 @@
104104
SSLSyscallError, SSLEOFError,
105105
)
106106
from _ssl import CERT_NONE, CERT_OPTIONAL, CERT_REQUIRED
107-
from _ssl import (VERIFY_DEFAULT, VERIFY_CRL_CHECK_LEAF, VERIFY_CRL_CHECK_CHAIN,
108-
VERIFY_X509_STRICT)
109107
from _ssl import txt2obj as _txt2obj, nid2obj as _nid2obj
110108
from _ssl import RAND_status, RAND_add, RAND_bytes, RAND_pseudo_bytes
111109
try:
@@ -122,6 +120,7 @@ def _import_symbols(prefix):
122120
_import_symbols('OP_')
123121
_import_symbols('ALERT_DESCRIPTION_')
124122
_import_symbols('SSL_ERROR_')
123+
_import_symbols('VERIFY_')
125124

126125
from _ssl import HAS_SNI, HAS_ECDH, HAS_NPN, HAS_ALPN
127126

Lib/test/test_ssl.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2284,7 +2284,8 @@ def test_crl_check(self):
22842284
context = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
22852285
context.verify_mode = ssl.CERT_REQUIRED
22862286
context.load_verify_locations(SIGNING_CA)
2287-
self.assertEqual(context.verify_flags, ssl.VERIFY_DEFAULT)
2287+
tf = getattr(ssl, "VERIFY_X509_TRUSTED_FIRST", 0)
2288+
self.assertEqual(context.verify_flags, ssl.VERIFY_DEFAULT | tf)
22882289

22892290
# VERIFY_DEFAULT should pass
22902291
server = ThreadedEchoServer(context=server_context, chatty=True)

0 commit comments

Comments
 (0)