diff options
author | Benjamin Peterson <benjamin@python.org> | 2015-03-04 22:49:41 -0500 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2015-03-04 22:49:41 -0500 |
commit | 72ef9610593bfee5f504f9070482a265ac5eac69 (patch) | |
tree | 33837c10c7d44aa8a631d435140f73453e89003a /Modules/_ssl.c | |
parent | b1ebba5bd569ede9b6f9573d6618fb3a6abddae5 (diff) | |
download | cpython-git-72ef9610593bfee5f504f9070482a265ac5eac69.tar.gz |
expose X509_V_FLAG_TRUSTED_FIRST
Diffstat (limited to 'Modules/_ssl.c')
-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 309d00bf78..8515c0fd11 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 */ |