summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorAngus Gratton <angus@redyak.com.au>2025-06-05 15:32:01 +1000
committerDamien George <damien@micropython.org>2025-07-23 15:47:16 +1000
commit41e0ec96cb10580c8d77156ed51c2e34bc2fc0ac (patch)
tree6045e8ba92cca3efaca5462f7cb32d8d58150780 /py
parentc6423d5d8e47ee0dc6b60fe150b4a2b540116940 (diff)
extmod/mbedtls: Implement DTLS HelloVerify cookie support.
This is already enabled in the ESP-IDF mbedTLS config, so provide an implementation of the cookie store functions. This allows DTLS connections between two esp32 boards. The session cookie store is a very simple dictionary associated with the SSLContext. To work, the server needs to reuse the same SSLContext (but cookies are never cleaned up, so a server with a high number of clients should recycle the context periodically.) Server code still needs to handle the MBEDTLS_ERR_SSL_HELLO_VERIFY_REQUIRED error by waiting for the next UDP packet from the client. Signed-off-by: Angus Gratton <angus@redyak.com.au>
Diffstat (limited to 'py')
0 files changed, 0 insertions, 0 deletions