PythonExtra/tests/multi_net
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
..
ssl_cert_rsa.py extmod/modussl_mbedtls: Implement cert_reqs and cadata arguments. 2022-07-20 16:46:04 +10:00
ssl_cert_rsa.py.exp extmod/modussl_mbedtls: Implement cert_reqs and cadata arguments. 2022-07-20 16:46:04 +10:00
ssl_data.py tests/multi_net: Skip SSL test if relevant modules aren't available. 2022-05-17 14:25:51 +10:00
ssl_data.py.exp tests/multi_net: Add initial set of multi-instance tests for network. 2020-03-10 02:22:34 +11:00
tcp_accept_recv.py tests/multi_net: Fix TCP accept test when using system error numbers. 2022-05-24 13:15:22 +10:00
tcp_client_rst.py tests/multi_net: Close accepted sockets when tests are done. 2022-01-21 13:34:20 +11:00
tcp_data.py extmod/modusocket: Implement optional socket.listen backlog argument. 2022-04-11 15:26:47 +10:00
uasyncio_tcp_client_rst.py tests: Use .errno instead of .args[0] for OSError exceptions. 2021-04-23 22:03:46 +10:00
uasyncio_tcp_client_rst.py.exp tests/multi_net: Add uasyncio test for TCP server and client. 2020-03-26 01:25:45 +11:00
uasyncio_tcp_close_write.py tests/multi_net: Add uasyncio test for TCP server and client. 2020-03-26 01:25:45 +11:00
uasyncio_tcp_close_write.py.exp tests/multi_net: Add uasyncio test for TCP server and client. 2020-03-26 01:25:45 +11:00
uasyncio_tcp_readall.py extmod/uasyncio: Implement stream read(-1) to read all data up to EOF. 2022-06-24 17:04:57 +10:00
uasyncio_tcp_readall.py.exp extmod/uasyncio: Implement stream read(-1) to read all data up to EOF. 2022-06-24 17:04:57 +10:00
uasyncio_tcp_readexactly.py extmod/uasyncio: Add StreamReader.readexactly(n) method. 2020-07-25 23:10:05 +10:00
uasyncio_tcp_readexactly.py.exp extmod/uasyncio: Add StreamReader.readexactly(n) method. 2020-07-25 23:10:05 +10:00
uasyncio_tcp_readinto.py extmod/uasyncio: Add readinto() method to Stream class. 2021-06-15 13:13:35 +10:00
uasyncio_tcp_readinto.py.exp extmod/uasyncio: Add readinto() method to Stream class. 2021-06-15 13:13:35 +10:00
uasyncio_tcp_server_client.py tests/multi_net: Add uasyncio test for TCP server and client. 2020-03-26 01:25:45 +11:00
uasyncio_tcp_server_client.py.exp tests/multi_net: Add uasyncio test for TCP server and client. 2020-03-26 01:25:45 +11:00
udp_data.py tests/multi_net/udp_data.py: Make UDP test more reliable. 2022-02-09 14:05:01 +11:00