b8b78e7e6a
Instead of defaulting to OpenSSL, allow selection of package to use through a choice in libcurl's config. The default will be to select the first enabled TLS provider in the same preference order as is used now, i.e. no change from current behavior. Some of the alternative libraries have advantages over OpenSSL in certain areas. For example, gnutls has vastly superior PKCS11 support. One can use client TLS private keys by supplying a PKCS11 URI instead of a private key file name. The TLS server cert trust store can be a PKCS11 URI, e.g. configure libcurl with a ca-bundle of "pkcs11:model=p11-kit-trust". Now server certs can be stored in a software and/or hardware HSM(s). This doesn't work with OpenSSL. However, some software only supports OpenSSL for TLS or other crypto functions. So it might be necessary to enable OpenSSL for that reason. Signed-off-by: Trent Piepho <tpiepho@impinj.com> [Peter: add BR2_PACKAGE_LIBCURL_TLS_SUPPORT and use it to hide choice & comment, explitly pass --without-foo if option is not enabled, only do .pc fixup if BR2_PACKAGE_LIBCURL_OPENSSL is enabled] Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
55 lines
1.1 KiB
Plaintext
55 lines
1.1 KiB
Plaintext
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.
|
|
|
|
http://curl.haxx.se/
|
|
|
|
if BR2_PACKAGE_LIBCURL
|
|
|
|
config BR2_PACKAGE_CURL
|
|
bool "curl binary"
|
|
help
|
|
Install curl binary as well
|
|
|
|
config BR2_PACKAGE_LIBCURL_VERBOSE
|
|
bool "enable verbose strings"
|
|
help
|
|
Enable verbose text strings
|
|
|
|
config BR2_PACKAGE_LIBCURL_TLS_SUPPORT
|
|
bool
|
|
default y if BR2_PACKAGE_OPENSSL
|
|
default y if BR2_PACKAGE_GNUTLS
|
|
default y if BR2_PACKAGE_LIBNSS
|
|
default y if BR2_PACKAGE_MBEDTLS
|
|
|
|
choice
|
|
prompt "SSL/TLS library to use"
|
|
depends on BR2_PACKAGE_LIBCURL_TLS_SUPPORT
|
|
|
|
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_LIBNSS
|
|
bool "NSS"
|
|
depends on BR2_PACKAGE_LIBNSS
|
|
|
|
config BR2_PACKAGE_LIBCURL_MBEDTLS
|
|
bool "mbed TLS"
|
|
depends on BR2_PACKAGE_MBEDTLS
|
|
|
|
endchoice
|
|
|
|
comment "A TLS library is needed for SSL/TLS support"
|
|
depends on !BR2_PACKAGE_LIBCURL_TLS_SUPPORT
|
|
|
|
endif
|