1config BR2_PACKAGE_LIBCURL
2	bool "libcurl"
3	help
4	  cURL is a tool for getting files from FTP, HTTP, Gopher,
5	  Telnet, and Dict servers, using any of the supported
6	  protocols.
7
8	  https://curl.se/
9
10if BR2_PACKAGE_LIBCURL
11
12config BR2_PACKAGE_LIBCURL_CURL
13	bool "curl binary"
14	help
15	  Install curl binary as well
16
17config BR2_PACKAGE_LIBCURL_VERBOSE
18	bool "verbose strings"
19	help
20	  Enable verbose text strings
21
22config BR2_PACKAGE_LIBCURL_PROXY_SUPPORT
23	bool "proxy support"
24	default y
25	help
26	  Enable proxy support.
27
28config BR2_PACKAGE_LIBCURL_COOKIES_SUPPORT
29	bool "cookies support"
30	default y
31	help
32	  Enable support for cookies.
33
34config BR2_PACKAGE_LIBCURL_WEBSOCKETS_SUPPORT
35	bool "websockets support"
36	help
37	  Enable support for websockets.
38
39config BR2_PACKAGE_LIBCURL_EXTRA_PROTOCOLS_FEATURES
40	bool "enable extra protocols and features"
41	default y
42	help
43	  Enable the following extra protocols and features:
44	  - LDAP / LDAPS
45	  - POP3 / IMAP / SMTP
46	  - Telnet
47	  - TFTP
48	  - RTSP
49	  - SMB / CIFS
50	  - DICT
51	  - Gopher
52
53# Packages must select that if they require a SSL/TLS-enabled libcurl.
54# Those packages must also select one crypto package that can be used
55# as a backend below.
56config BR2_PACKAGE_LIBCURL_FORCE_TLS
57	bool
58
59choice
60	prompt "SSL/TLS library to use"
61
62config BR2_PACKAGE_LIBCURL_OPENSSL
63	bool "OpenSSL"
64	depends on BR2_PACKAGE_OPENSSL
65
66config BR2_PACKAGE_LIBCURL_BEARSSL
67	bool "BearSSL"
68	depends on BR2_PACKAGE_BEARSSL
69
70config BR2_PACKAGE_LIBCURL_GNUTLS
71	bool "GnuTLS"
72	depends on BR2_PACKAGE_GNUTLS
73
74config BR2_PACKAGE_LIBCURL_MBEDTLS
75	bool "mbed TLS"
76	depends on BR2_PACKAGE_MBEDTLS
77
78config BR2_PACKAGE_LIBCURL_WOLFSSL
79	bool "WolfSSL"
80	depends on BR2_PACKAGE_WOLFSSL
81	depends on !BR2_STATIC_LIBS # wolfssl-all
82	select BR2_PACKAGE_WOLFSSL_ALL
83
84comment "WolfSSL needs a toolchain w/ dynamic library"
85	depends on BR2_PACKAGE_WOLFSSL
86	depends on BR2_STATIC_LIBS
87
88config BR2_PACKAGE_LIBCURL_TLS_NONE
89	bool "None"
90	depends on !BR2_PACKAGE_LIBCURL_FORCE_TLS
91
92endchoice
93
94endif
95