From 32f0c7a67b6b2eb3808b47b462e837582d6710f8 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Fri, 22 Nov 2013 03:43:48 +0100 Subject: or VERIFY_CRL_CHECK_LEAF to verify_flags --- Lib/test/test_ssl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py index 2190d9f..4ebc4b0 100644 --- a/Lib/test/test_ssl.py +++ b/Lib/test/test_ssl.py @@ -1816,7 +1816,7 @@ else: context = ssl.SSLContext(ssl.PROTOCOL_TLSv1) context.verify_mode = ssl.CERT_REQUIRED context.load_verify_locations(SIGNING_CA) - context.verify_flags = ssl.VERIFY_DEFAULT + self.assertEqual(context.verify_flags, ssl.VERIFY_DEFAULT) # VERIFY_DEFAULT should pass server = ThreadedEchoServer(context=server_context, chatty=True) @@ -1827,7 +1827,7 @@ else: self.assertTrue(cert, "Can't get peer certificate.") # VERIFY_CRL_CHECK_LEAF without a loaded CRL file fails - context.verify_flags = ssl.VERIFY_CRL_CHECK_LEAF + context.verify_flags |= ssl.VERIFY_CRL_CHECK_LEAF server = ThreadedEchoServer(context=server_context, chatty=True) with server: -- cgit v0.12