micropython/tests/net_inet
Carlosgg b41cfea02a extmod/modussl_mbedtls: Implement cert_reqs and cadata arguments.
Add cert_reqs and cadata keyword-args to ssl.wrap_socket() and
ssl.CERT_NONE, ssl.CERT_OPTIONAL, ssl.CERT_REQUIRED constants to allow
certificate validation.

CPython doesn't accept cadata in ssl.wrap_socket(), but it does in
SSLContext.load_verify_locations(), so we use this name to at least match
the same name in load_verify_locations().

Add docs for these new arguments, as well as docs for the existing
server_hostname argument which is important for certificate validation.

Tests are added as well.

Signed-off-by: Carlos Gil <carlosgilglez@gmail.com>
2022-07-20 16:46:04 +10:00
..
README tests: Rename run-tests to run-tests.py for consistency. 2021-03-12 19:56:09 +11:00
getaddrinfo.py esp32/modsocket: Fix getaddrinfo to raise on error. 2020-05-09 16:43:48 +10:00
ssl_cert.py extmod/modussl_mbedtls: Implement cert_reqs and cadata arguments. 2022-07-20 16:46:04 +10:00
ssl_cert.py.exp extmod/modussl_mbedtls: Implement cert_reqs and cadata arguments. 2022-07-20 16:46:04 +10:00
ssl_errors.py tests: Use .errno instead of .args[0] for OSError exceptions. 2021-04-23 22:03:46 +10:00
test_tls_nonblock.py tests/net_inet: Remove broken api.telegram.org from tests. 2022-06-03 14:34:29 +10:00
test_tls_sites.py tests/net_inet: Remove broken api.telegram.org from tests. 2022-06-03 14:34:29 +10:00
test_tls_sites.py.exp tests/net_inet: Remove broken api.telegram.org from tests. 2022-06-03 14:34:29 +10:00
tls_num_errors.py extmod/modussl: Improve exception error messages. 2020-07-20 23:41:45 +10:00
tls_num_errors.py.exp extmod/modussl: Improve exception error messages. 2020-07-20 23:41:45 +10:00
tls_text_errors.py extmod/modussl_mbedtls: Integrate shorter error strings. 2020-07-21 00:31:05 +10:00
uasyncio_cancel_stream.py tests/net_inet: Add uasyncio internet tests. 2020-03-26 01:25:45 +11:00
uasyncio_cancel_stream.py.exp tests/net_inet: Add uasyncio internet tests. 2020-03-26 01:25:45 +11:00
uasyncio_open_connection.py tests/net_inet: Add uasyncio internet tests. 2020-03-26 01:25:45 +11:00
uasyncio_open_connection.py.exp tests/net_inet: Add uasyncio internet tests. 2020-03-26 01:25:45 +11:00
uasyncio_tcp_read_headers.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
uasyncio_tcp_read_headers.py.exp tests/net_inet: Add 'Strict-Transport-Security' to exp file. 2021-04-18 23:20:26 +10:00

README

This directory contains network tests which require Internet connection.
Note that these tests are not run as part of the main testsuite and need
to be run seperately (from the main test/ directory):

    ./run-tests.py net_inet/*.py