Lines Matching refs:Purpose
651 self.assertIsInstance(ssl.Purpose.SERVER_AUTH, ssl._ASN1Object)
652 self.assertEqual(ssl.Purpose.SERVER_AUTH, val)
653 self.assertEqual(ssl.Purpose.SERVER_AUTH.nid, 129)
654 self.assertEqual(ssl.Purpose.SERVER_AUTH.shortname, 'serverAuth')
655 self.assertEqual(ssl.Purpose.SERVER_AUTH.oid,
659 self.assertIsInstance(ssl.Purpose.CLIENT_AUTH, ssl._ASN1Object)
660 self.assertEqual(ssl.Purpose.CLIENT_AUTH, val)
661 self.assertEqual(ssl.Purpose.CLIENT_AUTH.nid, 130)
662 self.assertEqual(ssl.Purpose.CLIENT_AUTH.shortname, 'clientAuth')
663 self.assertEqual(ssl.Purpose.CLIENT_AUTH.oid,
1105 ctx.load_default_certs(ssl.Purpose.SERVER_AUTH)
1109 ctx.load_default_certs(ssl.Purpose.CLIENT_AUTH)
1162 ctx = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH)
1199 ctx = ssl._create_stdlib_context(purpose=ssl.Purpose.CLIENT_AUTH)