Commit c387a0dd authored by Aurelien Jarno's avatar Aurelien Jarno Committed by Kumar Gala
Browse files

net: tcp: select MBEDTLS_MAC_MD5_ENABLED for ISN algorithm

The ISN algorithm from RFC 6528 doesn't need Mbed TLS, but rather the
MD5 algorithm from Mbed TLS. Therefore select MBEDTLS_MD and
MBEDTLS_MAC_MD5_ENABLED in addition to MBEDTLS.

This fixes the following build failure when using TLS version 1.2 is
selected:
  zephyr/subsys/net/ip/tcp2.c:1329: undefined reference to
  `mbedtls_md5_ret'

Signed-off-by: default avatarAurelien Jarno <aurelien@aurel32.net>
parent c30339aa
Loading
Loading
Loading
Loading
+2 −0
Changes for subsys/net/ip/Kconfig: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -459,6 +459,8 @@ config NET_TCP_ISN_RFC6528
	default y
	depends on NET_TCP
	select MBEDTLS
	select MBEDTLS_MD
	select MBEDTLS_MAC_MD5_ENABLED
	help
	  Implement Initial Sequence Number calculation as described in
	  RFC 6528 chapter 3. https://tools.ietf.org/html/rfc6528