summaryrefslogtreecommitdiffstats
path: root/rules/libcurl.in
blob: c832153af1d2efbcaf1609bbadaac0200994fe91 (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
## SECTION=networking

menuconfig LIBCURL
	tristate
	prompt "libcurl                       "
	select LIBC_RT
	select ZLIB
	select OPENSSL		if LIBCURL_SSL
	select LIBSSH2		if LIBCURL_LIBSSH2
	select CA_CERTIFICATES	if LIBCURL_SSL_CA_CERTIFICATES && RUNTIME
	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_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_SSL
       bool "ssl"

if LIBCURL_SSL

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_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)"

endif