mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
merge 3.4
This commit is contained in:
commit
3e2500d6db
2 changed files with 3 additions and 3 deletions
|
@ -2284,7 +2284,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…
Add table
Add a link
Reference in a new issue