Skip to content

Commit

Permalink
docs/library/ssl: Change wrap_socket args keyfile/certfile to key/cert.
Browse files Browse the repository at this point in the history
So they match the code in extmod/modssl_*.c.

Signed-off-by: Damien George <damien@micropython.org>
  • Loading branch information
dpgeorge committed Feb 5, 2024
1 parent 0285cb2 commit ac8e7f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/library/ssl.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit ac8e7f7

Please sign in to comment.