mirror of
https://github.com/python/cpython.git
synced 2025-11-20 02:50:14 +00:00
bpo-40849: Expose X509_V_FLAG_PARTIAL_CHAIN ssl flag (GH-20463)
This short PR exposes an openssl flag that wasn't exposed. I've also updated to doc to reflect the change. It's heavily inspired by 990fcaac3c.
This commit is contained in:
parent
d37b74f341
commit
64d975202f
4 changed files with 18 additions and 0 deletions
|
|
@ -650,6 +650,17 @@ Constants
|
|||
|
||||
.. versionadded:: 3.4.4
|
||||
|
||||
.. data:: VERIFY_X509_PARTIAL_CHAIN
|
||||
|
||||
Possible value for :attr:`SSLContext.verify_flags`. It instructs OpenSSL to
|
||||
accept intermediate CAs in the trust store to be treated as trust-anchors,
|
||||
in the same way as the self-signed root CA certificates. This makes it
|
||||
possible to trust certificates issued by an intermediate CA without having
|
||||
to trust its ancestor root CA.
|
||||
|
||||
.. versionadded:: 3.10
|
||||
|
||||
|
||||
.. class:: VerifyFlags
|
||||
|
||||
:class:`enum.IntFlag` collection of VERIFY_* constants.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue