mirror of
https://github.com/python/cpython.git
synced 2024-12-21 07:45:30 +08:00
adjust test_crl_check for trusted first being default
This commit is contained in:
parent
990fcaac3c
commit
c3d9c5ca0a
@ -2007,7 +2007,8 @@ else:
|
||||
context = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
|
||||
context.verify_mode = ssl.CERT_REQUIRED
|
||||
context.load_verify_locations(SIGNING_CA)
|
||||
self.assertEqual(context.verify_flags, ssl.VERIFY_DEFAULT)
|
||||
tf = getattr(ssl, "VERIFY_X509_TRUSTED_FIRST", 0)
|
||||
self.assertEqual(context.verify_flags, ssl.VERIFY_DEFAULT | tf)
|
||||
|
||||
# VERIFY_DEFAULT should pass
|
||||
server = ThreadedEchoServer(context=server_context, chatty=True)
|
||||
|
Loading…
Reference in New Issue
Block a user