From ac8e7f7b67ea13e7e9f816d3cfd4ddae4782db8d Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 5 Feb 2024 13:05:29 +1100 Subject: [PATCH] docs/library/ssl: Change wrap_socket args keyfile/certfile to key/cert. So they match the code in extmod/modssl_*.c. Signed-off-by: Damien George --- docs/library/ssl.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/library/ssl.rst b/docs/library/ssl.rst index f9be277453..dff90b8da5 100644 --- a/docs/library/ssl.rst +++ b/docs/library/ssl.rst @@ -13,7 +13,7 @@ facilities for network sockets, both client-side and server-side. Functions --------- -.. function:: ssl.wrap_socket(sock, server_side=False, keyfile=None, certfile=None, cert_reqs=CERT_NONE, cadata=None, server_hostname=None, do_handshake=True) +.. function:: ssl.wrap_socket(sock, server_side=False, key=None, cert=None, cert_reqs=CERT_NONE, cadata=None, server_hostname=None, do_handshake=True) Wrap the given *sock* and return a new wrapped-socket object. The implementation of this function is to first create an `SSLContext` and then call the `SSLContext.wrap_socket`