coap_mbedtls.c: Add in Connection ID support (RFC9146)

Requires MbedTLS 3.2.0 or later and MBEDTLS_SSL_DTLS_CONNECTION_ID defined
(which is the default in later versions of MbedTLS).
This commit is contained in:
Jon Shallow authored and Jon Shallow committed 2023-07-03 08:54:56 +01:00
1 parent a9b179ab32
commit 64450b6ec8
2 files changed
+50

No files matched your search

+5
View File
@@ -37,6 +37,11 @@
#define COAP_DTLS_RETRANSMIT_COAP_TICKS (COAP_DTLS_RETRANSMIT_MS * COAP_TICKS_PER_SECOND / 1000)
/* For RFC9146 Connection ID support */
#ifndef COAP_DTLS_CID_LENGTH
#define COAP_DTLS_CID_LENGTH 6
#endif
/**
* Creates a new DTLS context for the given @p coap_context. This function
* returns a pointer to a new DTLS context object or @c NULL on error.