From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 3 May 2022 16:24:39 +0000 (-0700) Subject: bpo-46604: fix function name in ssl module docstring (GH-31064) X-Git-Tag: v3.10.5~101 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=58f2d2d10aed5edbde85403c17ad2a54eb37db54;p=thirdparty%2FPython%2Fcpython.git bpo-46604: fix function name in ssl module docstring (GH-31064) 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 (cherry picked from commit feca9bbd1f6489f2b6d2783bfc22fdb96e45b69f) Co-authored-by: Kossi GLOKPOR <83467320+glk0@users.noreply.github.com> --- diff --git a/Lib/ssl.py b/Lib/ssl.py index 181065d2e53b..b09d684ed0fc 100644 --- a/Lib/ssl.py +++ b/Lib/ssl.py @@ -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: