mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
ssl: add missing VerifyFlags (#6411)
The documentation assures me that these were both added in 3.10: https://docs.python.org/3/library/ssl.html
This commit is contained in:
@@ -135,6 +135,9 @@ class VerifyFlags(enum.IntFlag):
|
||||
VERIFY_CRL_CHECK_CHAIN: int
|
||||
VERIFY_X509_STRICT: int
|
||||
VERIFY_X509_TRUSTED_FIRST: int
|
||||
if sys.version_info >= (3, 10):
|
||||
VERIFY_ALLOW_PROXY_CERTS: int
|
||||
VERIFY_X509_PARTIAL_CHAIN: int
|
||||
|
||||
VERIFY_DEFAULT: VerifyFlags
|
||||
VERIFY_CRL_CHECK_LEAF: VerifyFlags
|
||||
@@ -142,6 +145,10 @@ VERIFY_CRL_CHECK_CHAIN: VerifyFlags
|
||||
VERIFY_X509_STRICT: VerifyFlags
|
||||
VERIFY_X509_TRUSTED_FIRST: VerifyFlags
|
||||
|
||||
if sys.version_info >= (3, 10):
|
||||
VERIFY_ALLOW_PROXY_CERTS: VerifyFlags
|
||||
VERIFY_X509_PARTIAL_CHAIN: VerifyFlags
|
||||
|
||||
class _SSLMethod(enum.IntEnum):
|
||||
PROTOCOL_SSLv23: int
|
||||
PROTOCOL_SSLv2: int
|
||||
|
||||
Reference in New Issue
Block a user