diff options
author | Keenan Johnson <keenan.johnson@gmail.com> | 2025-02-13 13:11:38 -0800 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2025-02-14 12:55:25 +1100 |
commit | 321b30ca564bb33c625292247d00f7dd29dc9559 (patch) | |
tree | 34f04febf16e5825f069b002494dd512b0c30331 /docs/esp8266/tutorial/filesystem.rst | |
parent | aef6705a321fbefb06288b5be1f5931bf8c42fe3 (diff) | |
download | micropython-321b30ca564bb33c625292247d00f7dd29dc9559.tar.gz micropython-321b30ca564bb33c625292247d00f7dd29dc9559.zip |
extmod/modtls_mbedtls: Wire in support for DTLS.
This commit enables support for DTLS, i.e. TLS over datagram transport
protocols like UDP. While support for DTLS is absent in CPython, it is
worth supporting it in MicroPython because it is the basis of the
ubiquitous CoAP protocol, used in many IoT projects.
To select DTLS, a new set of "protocols" are added to SSLContext:
- ssl.PROTOCOL_DTLS_CLIENT
- ssl.PROTOCOL_DTLS_SERVER
If one of these is set, the library assumes that the underlying socket is a
datagram-like socket (i.e. UDP or similar).
Our own timer callbacks are implemented because the out of the box
implementation relies on `gettimeofday()`.
This new DTLS feature is enabled on all ports that use mbedTLS.
This commit is an update to a previous PR #10062.
Addresses issue #5270 which requested DTLS support.
Signed-off-by: Keenan Johnson <keenan.johnson@gmail.com>
Diffstat (limited to 'docs/esp8266/tutorial/filesystem.rst')
0 files changed, 0 insertions, 0 deletions