Skip to content

Commit 41d23a6

Browse files
jlainesrittau
authored andcommitted
ssl: add VerifyFlags flags and VerifyMode enum (#3302)
Closes #3301
1 parent e62857f commit 41d23a6

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

stdlib/2and3/ssl.pyi

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,17 @@ if sys.version_info >= (3, 6):
303303
ticket_lifetime_hint: int
304304
has_ticket: bool
305305

306+
class VerifyFlags(enum.IntFlag):
307+
VERIFY_DEFAULT: int
308+
VERIFY_CRL_CHECK_LEAF: int
309+
VERIFY_CRL_CHECK_CHAIN: int
310+
VERIFY_X509_STRICT: int
311+
VERIFY_X509_TRUSTED_FIRST: int
312+
313+
class VerifyMode(enum.IntEnum):
314+
CERT_NONE: int
315+
CERT_OPTIONAL: int
316+
CERT_REQUIRED: int
306317

307318
# TODO below documented in cpython but not in docs.python.org
308319
# taken from python 3.4

0 commit comments

Comments
 (0)