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 | 72ef9610593bfee5f504f9070482a265ac5eac69 (patch) | |
tree | 33837c10c7d44aa8a631d435140f73453e89003a /Modules | |
parent | b1ebba5bd569ede9b6f9573d6618fb3a6abddae5 (diff) | |
download | cpython-72ef9610593bfee5f504f9070482a265ac5eac69.zip cpython-72ef9610593bfee5f504f9070482a265ac5eac69.tar.gz cpython-72ef9610593bfee5f504f9070482a265ac5eac69.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 309d00b..8515c0f 100644 --- a/Modules/_ssl.c +++ b/Modules/_ssl.c @@ -4052,6 +4052,10 @@ init_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 */ |