summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-11-22 01:22:51 (GMT)
committerChristian Heimes <christian@cheimes.de>2013-11-22 01:22:51 (GMT)
commitf22e8e5426e02c2f5cf451cbc1b722713c744358 (patch)
tree94844351b21368c484630c58d37e2d59e0bbe8d1 /Doc/library
parent44109d7de7f24b681c973880aa3e1d39042078fd (diff)
downloadcpython-f22e8e5426e02c2f5cf451cbc1b722713c744358.zip
cpython-f22e8e5426e02c2f5cf451cbc1b722713c744358.tar.gz
cpython-f22e8e5426e02c2f5cf451cbc1b722713c744358.tar.bz2
Issue #18147: Add missing documentation for SSLContext.get_ca_certs().
Also change the argument name to the same name as getpeercert()
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/ssl.rst12
1 files changed, 12 insertions, 0 deletions
diff --git a/Doc/library/ssl.rst b/Doc/library/ssl.rst
index 7685ade..4d87586 100644
--- a/Doc/library/ssl.rst
+++ b/Doc/library/ssl.rst
@@ -1093,6 +1093,18 @@ to speed up repeated connections from the same clients.
>>> stats['hits'], stats['misses']
(0, 0)
+.. method:: SSLContext.get_ca_certs(binary_form=False)
+
+ Returns a list of dicts with information of loaded CA certs. If the
+ optional argument is True, returns a DER-encoded copy of the CA
+ certificate.
+
+ .. note::
+ Certificates in a capath directory aren't loaded unless they have
+ been used at least once.
+
+ .. versionadded:: 3.4
+
.. attribute:: SSLContext.options
An integer representing the set of SSL options enabled on this context.