Skip to content

Commit

Permalink
Fixes for DTLS CID
Browse files Browse the repository at this point in the history
Per zephyrproject-rtos/zephyr#36738.

Updated CID value with latest from:
  https://www.iana.org/assignments/tls-extensiontype-values/
tls-extensiontype-values.xhtml

Signed-off-by: Pete Skeggs <peter.skeggs@nordicsemi.no>
  • Loading branch information
plskeggs committed Apr 18, 2022
1 parent cefdd99 commit 310c665
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 6 additions & 2 deletions include/mbedtls/ssl.h
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,12 @@

/* The value of the CID extension is still TBD as of
* draft-ietf-tls-dtls-connection-id-05
* (https://tools.ietf.org/html/draft-ietf-tls-dtls-connection-id-05) */
#define MBEDTLS_TLS_EXT_CID 254 /* TBD */
* (https://tools.ietf.org/html/draft-ietf-tls-dtls-connection-id-05)
* Latest CID value is here:
* https://www.iana.org/assignments/tls-extensiontype-values/
* tls-extensiontype-values.xhtml#tls-extensiontype-values-1
*/
#define MBEDTLS_TLS_EXT_CID 54

#define MBEDTLS_TLS_EXT_ECJPAKE_KKPP 256 /* experimental */

Expand Down
3 changes: 2 additions & 1 deletion library/ssl_tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,8 @@ static int ssl_populate_transform( mbedtls_ssl_transform *transform,
const mbedtls_md_info_t *md_info;

#if !defined(MBEDTLS_SSL_EXPORT_KEYS) && \
!defined(MBEDTLS_DEBUG_C)
!defined(MBEDTLS_DEBUG_C) && \
!defined(MBEDTLS_SSL_DTLS_CONNECTION_ID) /* change from: https://github.com/ARMmbed/mbedtls/pull/3991/files */
ssl = NULL; /* make sure we don't use it except for those cases */
(void) ssl;
#endif
Expand Down

0 comments on commit 310c665

Please sign in to comment.