PythonExtra/tests/net_inet
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
..
README all: Fix spelling mistakes based on codespell check. 2023-04-27 18:03:06 +10:00
asyncio_cancel_stream.py tests: Rename uasyncio to asyncio. 2023-06-19 17:33:03 +10:00
asyncio_cancel_stream.py.exp tests: Rename uasyncio to asyncio. 2023-06-19 17:33:03 +10:00
asyncio_open_connection.py tests: Rename uasyncio to asyncio. 2023-06-19 17:33:03 +10:00
asyncio_open_connection.py.exp tests: Rename uasyncio to asyncio. 2023-06-19 17:33:03 +10:00
asyncio_tcp_read_headers.py tests: Rename uasyncio to asyncio. 2023-06-19 17:33:03 +10:00
asyncio_tcp_read_headers.py.exp tests: Rename uasyncio to asyncio. 2023-06-19 17:33:03 +10:00
getaddrinfo.py tests: Replace umodule with module everywhere. 2023-06-08 17:54:24 +10:00
mpycert.der extmod/modssl_mbedtls: Add SSLContext certificate methods. 2023-12-12 16:25:07 +11:00
ssl_cert.py tests: Replace umodule with module everywhere. 2023-06-08 17:54:24 +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: Replace umodule with module everywhere. 2023-06-08 17:54:24 +10:00
test_sslcontext_client.py extmod/modssl_mbedtls: Add SSLContext certificate methods. 2023-12-12 16:25:07 +11:00
test_sslcontext_client.py.exp extmod/modssl_mbedtls: Add SSLContext certificate methods. 2023-12-12 16:25:07 +11:00
test_tls_nonblock.py tests: Replace umodule with module everywhere. 2023-06-08 17:54:24 +10:00
test_tls_sites.py extmod/modssl: Add SSLContext class. 2023-06-26 16:34:41 +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 tests: Replace umodule with module everywhere. 2023-06-08 17:54:24 +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 tests: Replace umodule with module everywhere. 2023-06-08 17:54:24 +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 separately (from the main test/ directory):

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