]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-46604: fix function name in ssl module docstring (#31064)
authorKossi GLOKPOR <83467320+glk0@users.noreply.github.com>
Tue, 3 May 2022 15:56:24 +0000 (15:56 +0000)
committerGitHub <noreply@github.com>
Tue, 3 May 2022 15:56:24 +0000 (09:56 -0600)
The function fetch_server_certificate is replaced by get_server_certificate in the module. I reflected the change in the module docstrings.

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Lib/ssl.py

index dafb70a67864c45c89b70bbd30489f93390b163b..ebac1d60d52de7945ff92e5957ce0d3d6bee61a3 100644 (file)
@@ -18,9 +18,10 @@ Functions:
                           seconds past the Epoch (the time values
                           returned from time.time())
 
-  fetch_server_certificate (HOST, PORT) -- fetch the certificate provided
-                          by the server running on HOST at port PORT.  No
-                          validation of the certificate is performed.
+  get_server_certificate (addr, ssl_version, ca_certs, timeout) -- Retrieve the
+                          certificate from the server at the specified
+                          address and return it as a PEM-encoded string
+
 
 Integer constants: