Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
6fb09328
Commit
6fb09328
authored
Oct 30, 2017
by
Paul Sokolovsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs/ussl: Fix module name refs and use "MicroPython port" term.
parent
10b76a96
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
docs/library/ussl.rst
docs/library/ussl.rst
+7
-7
No files found.
docs/library/ussl.rst
View file @
6fb09328
...
@@ -13,7 +13,7 @@ facilities for network sockets, both client-side and server-side.
...
@@ -13,7 +13,7 @@ facilities for network sockets, both client-side and server-side.
Functions
Functions
---------
---------
.. function:: ssl.wrap_socket(sock, server_side=False, keyfile=None, certfile=None, cert_reqs=CERT_NONE, ca_certs=None)
.. function::
u
ssl.wrap_socket(sock, server_side=False, keyfile=None, certfile=None, cert_reqs=CERT_NONE, ca_certs=None)
Takes a stream *sock* (usually usocket.socket instance of ``SOCK_STREAM`` type),
Takes a stream *sock* (usually usocket.socket instance of ``SOCK_STREAM`` type),
and returns an instance of ssl.SSLSocket, which wraps the underlying stream in
and returns an instance of ssl.SSLSocket, which wraps the underlying stream in
...
@@ -23,12 +23,12 @@ Functions
...
@@ -23,12 +23,12 @@ Functions
server-side SSL socket should be created from a normal socket returned from
server-side SSL socket should be created from a normal socket returned from
`accept()` on a non-SSL listening server socket.
`accept()` on a non-SSL listening server socket.
Depending on the underlying module implementation
for a particular board,
Depending on the underlying module implementation
in a particular
some or all keyword arguments above may be not supported.
`MicroPython port`,
some or all keyword arguments above may be not supported.
.. warning::
.. warning::
Some implementations of ``ssl`` module do NOT validate server certificates,
Some implementations of ``
u
ssl`` module do NOT validate server certificates,
which makes an SSL connection established prone to man-in-the-middle attacks.
which makes an SSL connection established prone to man-in-the-middle attacks.
Exceptions
Exceptions
...
@@ -41,8 +41,8 @@ Exceptions
...
@@ -41,8 +41,8 @@ Exceptions
Constants
Constants
---------
---------
.. data:: ssl.CERT_NONE
.. data::
u
ssl.CERT_NONE
ssl.CERT_OPTIONAL
u
ssl.CERT_OPTIONAL
ssl.CERT_REQUIRED
u
ssl.CERT_REQUIRED
Supported values for *cert_reqs* parameter.
Supported values for *cert_reqs* parameter.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment