micropython/extmod
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
axtls-include
btstack extmod: Switch to use new event functions. 2023-12-08 12:48:50 +11:00
lwip-include
mbedtls extmod/mbedtls: Enable certificate time/date validation by default. 2023-12-01 15:08:11 +11:00
nimble extmod: Switch to use new event functions. 2023-12-08 12:48:50 +11:00
extmod.cmake extmod: Add lists of libm/libm_dbl source files for ports to use. 2023-12-08 15:39:28 +11:00
extmod.mk extmod: Add lists of libm/libm_dbl source files for ports to use. 2023-12-08 15:39:28 +11:00
font_petme128_8x8.h
machine_adc.c
machine_adc_block.c
machine_bitstream.c
machine_i2c.c extmod: Switch to use new event functions. 2023-12-08 12:48:50 +11:00
machine_i2s.c
machine_mem.c
machine_pinbase.c extmod/modmachine: Add MICROPY_PY_MACHINE_PIN_BASE option. 2023-11-30 16:11:11 +11:00
machine_pulse.c
machine_pwm.c
machine_signal.c
machine_spi.c
machine_timer.c
machine_uart.c
machine_wdt.c
misc.h
modasyncio.c
modbinascii.c
modbluetooth.c extmod/modbluetooth: Initialise nlr_jump_callback_top for IRQ handlers. 2023-11-09 14:51:20 +11:00
modbluetooth.h
modbtree.c
modcryptolib.c
moddeflate.c
modframebuf.c
modhashlib.c
modheapq.c
modjson.c
modlwip.c extmod: Switch to use new event functions. 2023-12-08 12:48:50 +11:00
modmachine.c extmod/modmachine: Provide common implementation of disable/enable_irq. 2023-11-30 16:11:11 +11:00
modmachine.h extmod/modmachine: Provide common bindings for 6 bare-metal functions. 2023-11-30 16:11:11 +11:00
modnetwork.c extmod/modnetwork: Add deinit function to NIC protocol. 2023-12-06 17:32:00 +11:00
modnetwork.h extmod/modnetwork: Add deinit function to NIC protocol. 2023-12-06 17:32:00 +11:00
modonewire.c
modos.c nrf: Convert os module to use extmod version. 2023-11-30 16:33:56 +11:00
modplatform.c
modplatform.h
modrandom.c
modre.c
modselect.c extmod: Switch to use new event functions. 2023-12-08 12:48:50 +11:00
modsocket.c
modssl_axtls.c
modssl_mbedtls.c extmod/modssl_mbedtls: Add SSLContext certificate methods. 2023-12-12 16:25:07 +11:00
modtime.c
modtime.h
moductypes.c
modwebrepl.c
modwebsocket.c
modwebsocket.h
mpbthci.c
mpbthci.h
network_cyw43.c extmod: Switch to use new event functions. 2023-12-08 12:48:50 +11:00
network_cyw43.h
network_esp_hosted.c
network_lwip.c
network_ninaw10.c extmod/network_ninaw10: Switch to using soft-timer for polling. 2023-12-06 17:32:21 +11:00
network_wiznet5k.c
os_dupterm.c
vfs.c
vfs.h
vfs_blockdev.c
vfs_fat.c
vfs_fat.h
vfs_fat_diskio.c
vfs_fat_file.c
vfs_lfs.c
vfs_lfs.h
vfs_lfsx.c
vfs_lfsx_file.c
vfs_posix.c
vfs_posix.h
vfs_posix_file.c extmod/vfs_posix_file: Make standard file objects non-const. 2023-11-09 15:01:34 +11:00
vfs_reader.c extmod/vfs_reader: Add file ioctl to set read buffer size. 2023-11-09 11:20:31 +11:00
virtpin.c
virtpin.h