Skip to content

Commit 6526b5b

Browse files
jukkarcarlescufi
authored andcommitted
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 <[email protected]>
1 parent d8d5179 commit 6526b5b

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

samples/net/civetweb/http_server/prj.conf

+4
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,7 @@ CONFIG_NET_CONFIG_PEER_IPV4_ADDR="192.0.2.2"
3030

3131
# logging
3232
CONFIG_NET_LOG=y
33+
34+
# Do not include mbedtls via this option as civetweb does not
35+
# work properly with mbedtls.
36+
CONFIG_NET_TCP_ISN_RFC6528=n

samples/net/civetweb/websocket_server/prj.conf

+4
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,7 @@ CONFIG_IDLE_STACK_SIZE=1024
3434
CONFIG_LOG=y
3535
# CONFIG_NET_LOG=y
3636
# CONFIG_LOG_STRDUP_MAX_STRING=256
37+
38+
# Do not include mbedtls via this option as civetweb does not
39+
# work properly with mbedtls.
40+
CONFIG_NET_TCP_ISN_RFC6528=n

0 commit comments

Comments
 (0)