diff options
author | Chris Burr <chrisburr@users.noreply.github.com> | 2021-03-18 08:24:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-18 08:24:01 (GMT) |
commit | e0b4aa0f5c3c2b2c60f5d8b20cf291442a8df8a5 (patch) | |
tree | f2b692769abf47231b9484a73122f9c369c32c30 /Lib/test/test_ssl.py | |
parent | e0bf70d08c4a4a68782702e747e6bf7670667591 (diff) | |
download | cpython-e0b4aa0f5c3c2b2c60f5d8b20cf291442a8df8a5.zip cpython-e0b4aa0f5c3c2b2c60f5d8b20cf291442a8df8a5.tar.gz cpython-e0b4aa0f5c3c2b2c60f5d8b20cf291442a8df8a5.tar.bz2 |
bpo-39342: Expose X509_V_FLAG_ALLOW_PROXY_CERTS in ssl module (GH-18011)
Exposes the `X509_V_FLAG_ALLOW_PROXY_CERTS` constant as `ssl.VERIFY_ALLOW_PROXY_CERTS` to allow for proxy certificate validation as described in: https://www.openssl.org/docs/man1.1.1/man7/proxy-certificates.html
Diffstat (limited to 'Lib/test/test_ssl.py')
-rw-r--r-- | Lib/test/test_ssl.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py index 67850c3..1710dda 100644 --- a/Lib/test/test_ssl.py +++ b/Lib/test/test_ssl.py @@ -1305,6 +1305,8 @@ class ContextTests(unittest.TestCase): self.assertEqual(ctx.verify_flags, ssl.VERIFY_CRL_CHECK_CHAIN) ctx.verify_flags = ssl.VERIFY_DEFAULT self.assertEqual(ctx.verify_flags, ssl.VERIFY_DEFAULT) + ctx.verify_flags = ssl.VERIFY_ALLOW_PROXY_CERTS + self.assertEqual(ctx.verify_flags, ssl.VERIFY_ALLOW_PROXY_CERTS) # supports any value ctx.verify_flags = ssl.VERIFY_CRL_CHECK_LEAF | ssl.VERIFY_X509_STRICT self.assertEqual(ctx.verify_flags, |