PythonExtra/tests/multi_net
Carlosgg f3f215e9bd extmod/modssl_mbedtls: Add SSLContext certificate methods.
This commit adds:

1) Methods to SSLContext class that match CPython signature:

	- `SSLContext.load_cert_chain(certfile, keyfile)`
	- `SSLContext.load_verify_locations(cafile=, cadata=)`
	- `SSLContext.get_ciphers()` --> ["CIPHERSUITE"]
	- `SSLContext.set_ciphers(["CIPHERSUITE"])`

2) `sslsocket.cipher()` to get current ciphersuite and protocol
   version.

3) `ssl.MBEDTLS_VERSION` string constant.

4) Certificate verification errors info instead of
   `MBEDTLS_ERR_X509_CERT_VERIFY_FAILED`.

5) Tests in `net_inet` and `multi_net` to test these new methods.

`SSLContext.load_cert_chain` method allows loading key and cert from disk
passing a filepath in `certfile` or `keyfile` options.

`SSLContext.load_verify_locations`'s `cafile` option enables the same
functionality for ca files.

Signed-off-by: Carlos Gil <carlosgilglez@gmail.com>
2023-12-12 16:25:07 +11:00
..
asyncio_tcp_client_rst.py tests: Rename uasyncio to asyncio. 2023-06-19 17:33:03 +10:00
asyncio_tcp_client_rst.py.exp tests: Rename uasyncio to asyncio. 2023-06-19 17:33:03 +10:00
asyncio_tcp_close_write.py tests/multi_net: Increase asyncio tests timeouts. 2023-09-06 12:09:19 +10:00
asyncio_tcp_close_write.py.exp tests: Rename uasyncio to asyncio. 2023-06-19 17:33:03 +10:00
asyncio_tcp_readall.py tests/multi_net: Increase asyncio tests timeouts. 2023-09-06 12:09:19 +10:00
asyncio_tcp_readall.py.exp tests: Rename uasyncio to asyncio. 2023-06-19 17:33:03 +10:00
asyncio_tcp_readexactly.py tests/multi_net: Increase asyncio tests timeouts. 2023-09-06 12:09:19 +10:00
asyncio_tcp_readexactly.py.exp tests: Rename uasyncio to asyncio. 2023-06-19 17:33:03 +10:00
asyncio_tcp_readinto.py tests: Rename uasyncio to asyncio. 2023-06-19 17:33:03 +10:00
asyncio_tcp_readinto.py.exp tests: Rename uasyncio to asyncio. 2023-06-19 17:33:03 +10:00
asyncio_tcp_server_client.py tests: Rename uasyncio to asyncio. 2023-06-19 17:33:03 +10:00
asyncio_tcp_server_client.py.exp tests: Rename uasyncio to asyncio. 2023-06-19 17:33:03 +10:00
expired_cert.der extmod/modssl_mbedtls: Add SSLContext certificate methods. 2023-12-12 16:25:07 +11:00
rsa_cert.der extmod/modssl_mbedtls: Add SSLContext certificate methods. 2023-12-12 16:25:07 +11:00
rsa_key.der extmod/modssl_mbedtls: Add SSLContext certificate methods. 2023-12-12 16:25:07 +11:00
ssl_cert_rsa.py extmod/modssl_mbedtls: Add SSLContext certificate methods. 2023-12-12 16:25:07 +11: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: Replace umodule with module everywhere. 2023-06-08 17:54:24 +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
sslcontext_check_hostname_error.py extmod/modssl_mbedtls: Add SSLContext certificate methods. 2023-12-12 16:25:07 +11:00
sslcontext_check_hostname_error.py.exp extmod/modssl_mbedtls: Add SSLContext certificate methods. 2023-12-12 16:25:07 +11:00
sslcontext_getpeercert.py extmod/modssl_mbedtls: Add SSLContext certificate methods. 2023-12-12 16:25:07 +11:00
sslcontext_getpeercert.py.exp extmod/modssl_mbedtls: Add SSLContext certificate methods. 2023-12-12 16:25:07 +11:00
sslcontext_server_client.py extmod/modssl_mbedtls: Add SSLContext certificate methods. 2023-12-12 16:25:07 +11:00
sslcontext_server_client.py.exp extmod/modssl_mbedtls: Add SSLContext certificate methods. 2023-12-12 16:25:07 +11:00
sslcontext_server_client_ciphers.py extmod/modssl_mbedtls: Add SSLContext certificate methods. 2023-12-12 16:25:07 +11:00
sslcontext_server_client_ciphers.py.exp extmod/modssl_mbedtls: Add SSLContext certificate methods. 2023-12-12 16:25:07 +11:00
sslcontext_server_client_files.py extmod/modssl_mbedtls: Add SSLContext certificate methods. 2023-12-12 16:25:07 +11:00
sslcontext_server_client_files.py.exp extmod/modssl_mbedtls: Add SSLContext certificate methods. 2023-12-12 16:25:07 +11:00
sslcontext_verify_error.py extmod/modssl_mbedtls: Add SSLContext certificate methods. 2023-12-12 16:25:07 +11:00
sslcontext_verify_error.py.exp extmod/modssl_mbedtls: Add SSLContext certificate methods. 2023-12-12 16:25:07 +11:00
sslcontext_verify_time_error.py extmod/modssl_mbedtls: Add SSLContext certificate methods. 2023-12-12 16:25:07 +11:00
sslcontext_verify_time_error.py.exp extmod/modssl_mbedtls: Add SSLContext certificate methods. 2023-12-12 16:25:07 +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 top: Update Python formatting to black "2023 stable style". 2023-02-02 12:51:03 +11:00
udp_data.py tests/multi_net/udp_data.py: Make UDP test more reliable. 2022-02-09 14:05:01 +11:00