config BR2_PACKAGE_LIBCURL
	bool "libcurl"
	help
	  cURL is a tool for getting files from FTP, HTTP, Gopher,
	  Telnet, and Dict servers, using any of the supported
	  protocols.

	  https://curl.se/

if BR2_PACKAGE_LIBCURL

config BR2_PACKAGE_LIBCURL_CURL
	bool "curl binary"
	help
	  Install curl binary as well

config BR2_PACKAGE_LIBCURL_VERBOSE
	bool "verbose strings"
	help
	  Enable verbose text strings

config BR2_PACKAGE_LIBCURL_PROXY_SUPPORT
	bool "proxy support"
	default y
	help
	  Enable proxy support.

config BR2_PACKAGE_LIBCURL_COOKIES_SUPPORT
	bool "cookies support"
	default y
	help
	  Enable support for cookies.

config BR2_PACKAGE_LIBCURL_WEBSOCKETS_SUPPORT
	bool "websockets support"
	help
	  Enable support for websockets.

config BR2_PACKAGE_LIBCURL_EXTRA_PROTOCOLS_FEATURES
	bool "enable extra protocols and features"
	default y
	help
	  Enable the following extra protocols and features:
	  - LDAP / LDAPS
	  - POP3 / IMAP / SMTP
	  - Telnet
	  - TFTP
	  - RTSP
	  - SMB / CIFS
	  - DICT
	  - Gopher

# Packages must select that if they require a SSL/TLS-enabled libcurl.
# Those packages must also select one crypto package that can be used
# as a backend below.
config BR2_PACKAGE_LIBCURL_FORCE_TLS
	bool

choice
	prompt "SSL/TLS library to use"

config BR2_PACKAGE_LIBCURL_OPENSSL
	bool "OpenSSL"
	depends on BR2_PACKAGE_OPENSSL

config BR2_PACKAGE_LIBCURL_GNUTLS
	bool "GnuTLS"
	depends on BR2_PACKAGE_GNUTLS

config BR2_PACKAGE_LIBCURL_MBEDTLS
	bool "mbed TLS"
	depends on BR2_PACKAGE_MBEDTLS

config BR2_PACKAGE_LIBCURL_WOLFSSL
	bool "WolfSSL"
	depends on BR2_PACKAGE_WOLFSSL
	depends on !BR2_STATIC_LIBS # wolfssl-all
	select BR2_PACKAGE_WOLFSSL_ALL

comment "WolfSSL needs a toolchain w/ dynamic library"
	depends on BR2_PACKAGE_WOLFSSL
	depends on BR2_STATIC_LIBS

config BR2_PACKAGE_LIBCURL_TLS_NONE
	bool "None"
	depends on !BR2_PACKAGE_LIBCURL_FORCE_TLS

endchoice

endif
