diff options
author | Benjamin Peterson <benjamin@python.org> | 2015-03-05 03:49:41 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2015-03-05 03:49:41 (GMT) |
commit | 990fcaac3c428569697f62a80fd95ab4d4b93151 (patch) | |
tree | 5bcaae3384ac88a2749f9422f72708c6a2faa1e7 /Modules | |
parent | fdb19715879babc580f63bc129f5b0ff46482d1c (diff) | |
download | cpython-990fcaac3c428569697f62a80fd95ab4d4b93151.zip cpython-990fcaac3c428569697f62a80fd95ab4d4b93151.tar.gz cpython-990fcaac3c428569697f62a80fd95ab4d4b93151.tar.bz2 |
expose X509_V_FLAG_TRUSTED_FIRST
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_ssl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c index a5b94eb..9bd0776 100644 --- a/Modules/_ssl.c +++ b/Modules/_ssl.c @@ -4004,6 +4004,10 @@ PyInit__ssl(void) X509_V_FLAG_CRL_CHECK|X509_V_FLAG_CRL_CHECK_ALL); PyModule_AddIntConstant(m, "VERIFY_X509_STRICT", X509_V_FLAG_X509_STRICT); +#ifdef X509_V_FLAG_TRUSTED_FIRST + PyModule_AddIntConstant(m, "VERIFY_X509_TRUSTED_FIRST", + X509_V_FLAG_TRUSTED_FIRST); +#endif /* Alert Descriptions from ssl.h */ /* note RESERVED constants no longer intended for use have been removed */ |