mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
expose X509_V_FLAG_TRUSTED_FIRST
This commit is contained in:
parent
fdb1971587
commit
990fcaac3c
3 changed files with 18 additions and 5 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue