File tree Expand file tree Collapse file tree 4 files changed +18
-0
lines changed Expand file tree Collapse file tree 4 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -650,6 +650,17 @@ Constants
650
650
651
651
.. versionadded :: 3.4.4
652
652
653
+ .. data :: VERIFY_X509_PARTIAL_CHAIN
654
+
655
+ Possible value for :attr: `SSLContext.verify_flags `. It instructs OpenSSL to
656
+ accept intermediate CAs in the trust store to be treated as trust-anchors,
657
+ in the same way as the self-signed root CA certificates. This makes it
658
+ possible to trust certificates issued by an intermediate CA without having
659
+ to trust its ancestor root CA.
660
+
661
+ .. versionadded :: 3.10
662
+
663
+
653
664
.. class :: VerifyFlags
654
665
655
666
:class: `enum.IntFlag ` collection of VERIFY_* constants.
Original file line number Diff line number Diff line change @@ -157,6 +157,7 @@ Michel Van den Bergh
157
157
Julian Berman
158
158
Brice Berna
159
159
Olivier Bernard
160
+ Vivien Bernet-Rollande
160
161
Maxwell Bernstein
161
162
Eric Beser
162
163
Steven Bethard
Original file line number Diff line number Diff line change
1
+ Expose X509_V_FLAG_PARTIAL_CHAIN ssl flag
Original file line number Diff line number Diff line change @@ -5630,6 +5630,11 @@ sslmodule_init_constants(PyObject *m)
5630
5630
PyModule_AddIntConstant (m , "VERIFY_X509_TRUSTED_FIRST" ,
5631
5631
X509_V_FLAG_TRUSTED_FIRST );
5632
5632
5633
+ #ifdef X509_V_FLAG_PARTIAL_CHAIN
5634
+ PyModule_AddIntConstant (m , "VERIFY_X509_PARTIAL_CHAIN" ,
5635
+ X509_V_FLAG_PARTIAL_CHAIN );
5636
+ #endif
5637
+
5633
5638
/* Alert Descriptions from ssl.h */
5634
5639
/* note RESERVED constants no longer intended for use have been removed */
5635
5640
/* http://www.iana.org/assignments/tls-parameters/tls-parameters.xml#tls-parameters-6 */
You can’t perform that action at this time.
0 commit comments