Skip to content

Commit

Permalink
modules: mbedtls: Add Kconfig option to enable DTLS Connection ID
Browse files Browse the repository at this point in the history
Add Kconfig option for `config-tls-generic.h` to enable DTLS Connection
ID extension.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
  • Loading branch information
rlubos committed Jul 5, 2021
1 parent ef50c9b commit e9b2ebe
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/mbedtls/Kconfig.tls-generic
Original file line number Diff line number Diff line change
Expand Up @@ -361,4 +361,12 @@ config MBEDTLS_HAVE_TIME_DATE
There also need to be a valid time source in the system, as mbedTLS
expects a valid date/time for certificate validation."

config MBEDTLS_SSL_DTLS_CONNECTION_ID
bool "Enable DTLS Connection ID extension"
depends on MBEDTLS_DTLS
help
Enable support for the DTLS Connection ID extension
which allows to identify DTLS connections across changes
in the underlying transport.

endmenu
4 changes: 4 additions & 0 deletions modules/mbedtls/configs/config-tls-generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,10 @@
#define MBEDTLS_SSL_SERVER_NAME_INDICATION
#endif

#if defined(CONFIG_MBEDTLS_SSL_DTLS_CONNECTION_ID)
#define MBEDTLS_SSL_DTLS_CONNECTION_ID
#endif

/* User config file */

#if defined(CONFIG_MBEDTLS_USER_CONFIG_FILE)
Expand Down

0 comments on commit e9b2ebe

Please sign in to comment.