#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#

config NETUTILS_LIBWEBSOCKETS
	bool "libwebsockets library (current version)"
	default n
	depends on NET
	---help---
		Enables the libwebsockets library.

if NETUTILS_LIBWEBSOCKETS

config NETUTILS_LIBWEBSOCKETS_VERSION
	string "Version number"
	default "4.3.1"

config NETUTILS_LIBWEBSOCKETS_SERVER
	bool "Enable server support"
	default n
	---help---
		Enable WebSocket/HTTP server support in libwebsockets.
		When disabled, only client-side code is built.

config NETUTILS_LIBWEBSOCKETS_TLS
	bool "Enable TLS support"
	default y
	depends on OPENSSL_MBEDTLS_WRAPPER
	---help---
		Enable TLS in libwebsockets via the OpenSSL-mbedTLS
		wrapper. Requires CONFIG_OPENSSL_MBEDTLS_WRAPPER.
		When disabled, only plain ws:// connections are supported.

endif
