Skip to content

Commit 6fb0932

Browse files
committed
docs/ussl: Fix module name refs and use "MicroPython port" term.
1 parent 10b76a9 commit 6fb0932

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

docs/library/ussl.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ facilities for network sockets, both client-side and server-side.
1313
Functions
1414
---------
1515

16-
.. function:: ssl.wrap_socket(sock, server_side=False, keyfile=None, certfile=None, cert_reqs=CERT_NONE, ca_certs=None)
16+
.. function:: ussl.wrap_socket(sock, server_side=False, keyfile=None, certfile=None, cert_reqs=CERT_NONE, ca_certs=None)
1717

1818
Takes a stream *sock* (usually usocket.socket instance of ``SOCK_STREAM`` type),
1919
and returns an instance of ssl.SSLSocket, which wraps the underlying stream in
@@ -23,12 +23,12 @@ Functions
2323
server-side SSL socket should be created from a normal socket returned from
2424
`accept()` on a non-SSL listening server socket.
2525

26-
Depending on the underlying module implementation for a particular board,
27-
some or all keyword arguments above may be not supported.
26+
Depending on the underlying module implementation in a particular
27+
`MicroPython port`, some or all keyword arguments above may be not supported.
2828

2929
.. warning::
3030

31-
Some implementations of ``ssl`` module do NOT validate server certificates,
31+
Some implementations of ``ussl`` module do NOT validate server certificates,
3232
which makes an SSL connection established prone to man-in-the-middle attacks.
3333

3434
Exceptions
@@ -41,8 +41,8 @@ Exceptions
4141
Constants
4242
---------
4343

44-
.. data:: ssl.CERT_NONE
45-
ssl.CERT_OPTIONAL
46-
ssl.CERT_REQUIRED
44+
.. data:: ussl.CERT_NONE
45+
ussl.CERT_OPTIONAL
46+
ussl.CERT_REQUIRED
4747

4848
Supported values for *cert_reqs* parameter.

0 commit comments

Comments
 (0)