samples: net: civetweb: Avoid using mbedtls

Civetweb does not work properly with mbedtls if Posix APIs
are enabled. For example time function prototypes are not found
by the mbedtls module if we enable mbedtls in the sample.

Disable TCP ISN RFC6528 support because of this for civetweb
samples, as setting that option will pull in mbedtls and
we get a compilation warning because time() is not declared
by any header file that mbedtls is including.

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
Jukka Rissanen 2021-03-10 14:20:18 +02:00 committed by Carles Cufí
commit 6526b5b232
2 changed files with 8 additions and 0 deletions

View file

@ -30,3 +30,7 @@ CONFIG_NET_CONFIG_PEER_IPV4_ADDR="192.0.2.2"
# logging # logging
CONFIG_NET_LOG=y CONFIG_NET_LOG=y
# Do not include mbedtls via this option as civetweb does not
# work properly with mbedtls.
CONFIG_NET_TCP_ISN_RFC6528=n

View file

@ -34,3 +34,7 @@ CONFIG_IDLE_STACK_SIZE=1024
CONFIG_LOG=y CONFIG_LOG=y
# CONFIG_NET_LOG=y # CONFIG_NET_LOG=y
# CONFIG_LOG_STRDUP_MAX_STRING=256 # CONFIG_LOG_STRDUP_MAX_STRING=256
# Do not include mbedtls via this option as civetweb does not
# work properly with mbedtls.
CONFIG_NET_TCP_ISN_RFC6528=n