From 373a1e5aa685039250a5f6282bbae60c93ad8616 Mon Sep 17 00:00:00 2001 From: Christophe Nanteuil Date: Thu, 2 Apr 2020 21:32:42 +0200 Subject: [PATCH] Modify statement according to source code. ref: https://github.com/python/cpython/blob/master/Lib/ssl.py#L746 --- Doc/library/ssl.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Doc/library/ssl.rst b/Doc/library/ssl.rst index c425750d3c5..44904da7fdc 100644 --- a/Doc/library/ssl.rst +++ b/Doc/library/ssl.rst @@ -128,8 +128,9 @@ purposes. *cafile*, *capath*, *cadata* represent optional CA certificates to trust for certificate verification, as in :meth:`SSLContext.load_verify_locations`. If all three are - :const:`None`, this function trusts the system's default - CA certificates instead. + :const:`None` and :attr:`SSLContext.verify_mode` is not set to + :data:`CERT_NONE`, this function uses the system's default CA + certificates. The settings are: :data:`PROTOCOL_TLS`, :data:`OP_NO_SSLv2`, and :data:`OP_NO_SSLv3` with high encryption cipher suites without RC4 and