summaryrefslogtreecommitdiffstats
path: root/rules/libcurl.in
blob: c717668bc942e777bba6f3de839b2e885f7ab4dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
## SECTION=networking

menuconfig LIBCURL
	tristate
	prompt "libcurl                       "
	select LIBC_RT
	select ZLIB
	select OPENSSL		if LIBCURL_SSL_OPENSSL
	select GNUTLS		if LIBCURL_SSL_GNUTLS
	select LIBSSH2		if LIBCURL_LIBSSH2
	select CA_CERTIFICATES	if LIBCURL_SSL_CA_CERTIFICATES && RUNTIME
	select C_ARES		if LIBCURL_C_ARES
	help
	  curl is a command line tool for transferring files with URL syntax,
	  supporting FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP, TELNET, DICT,
	  LDAP, LDAPS and FILE.
	  curl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading,
	  HTTP form based upload, proxies, cookies, user+password authentication
	  (Basic, Digest, NTLM, Negotiate, kerberos...), file transfer resume,
	  proxy tunneling and a busload of other useful tricks.

if LIBCURL

config LIBCURL_CURL
	bool "install curl program"

config LIBCURL_C_ARES
	bool "enable c-ares for DNS lookups"

config LIBCURL_HTTP
	bool "http"
	default y

config LIBCURL_COOKIES
	bool "cookies support"
	depends on LIBCURL_HTTP

config LIBCURL_FTP
	bool "ftp"
	default y

config LIBCURL_TFTP
	bool "tftp"

config LIBCURL_FILE
	bool "file"

config LIBCURL_SMTP
	bool "smtp"
	help
	  enable smtp support for sending emails

config LIBCURL_VERBOSE
	bool "verbose messages"
	help
	  enable verbose messages, helpful for error indication

config LIBCURL_SSL
	bool "ssl"

config LIBCURL_RTSP
	bool "rtsp"

if LIBCURL_SSL

choice
	prompt "SSL backend"
	default LIBCURL_SSL_OPENSSL

	config LIBCURL_SSL_OPENSSL
		bool "OpenSSL"

	config LIBCURL_SSL_GNUTLS
		bool "GnuTLS"
endchoice

choice
	prompt "Central CA certificate storage"

	config LIBCURL_SSL_NOCA
		bool "No CA storage      "

	config LIBCURL_SSL_CAPATH
		bool "custom CA directory"

	config LIBCURL_SSL_CABUNDLE
		bool "custom CA bundle   "

	config LIBCURL_SSL_CA_CERTIFICATES
		bool "use ca-certificates"
endchoice

config LIBCURL_SSL_CA_CERTIFICATES_PATH
	bool
	depends on LIBCURL_SSL_CA_CERTIFICATES
	default CA_CERTIFICATES_CERTS

endif

config LIBCURL_SSL_DEFAULT_BACKEND
	string
	default "openssl"	if LIBCURL_SSL_OPENSSL
	default "gnutls"	if LIBCURL_SSL_GNUTLS
	default "no"		if !LIBCURL_SSL

config LIBCURL_SSL_CAPATH_PATH
	string "CA directory path" if LIBCURL_SSL_CAPATH
	default "/etc/ssl/certs" if LIBCURL_SSL_CAPATH || (LIBCURL_SSL_CA_CERTIFICATES && LIBCURL_SSL_CA_CERTIFICATES_PATH)
	default "no"

config LIBCURL_SSL_CABUNDLE_PATH
	string "CA bundle path" if LIBCURL_SSL_CABUNDLE
	default "/etc/ssl/certs/ca-certificates.crt" if LIBCURL_SSL_CABUNDLE || (LIBCURL_SSL_CA_CERTIFICATES && !LIBCURL_SSL_CA_CERTIFICATES_PATH)
	default "no"

config LIBCURL_CRYPTO_AUTH
	bool "cryptographic authentication"

config LIBCURL_LIBSSH2
	bool "scp/sftp (via libssh2)"

config LIBCURL_MIME
	bool "MIME support"

endif