[Buildroot] [PATCH] libcurl: Allow selection of TLS package libcurl will use
tpiepho at impinj.com
Thu Nov 8 21:55:45 UTC 2018
On Thu, 2018-11-08 at 22:33 +0100, Peter Korsgaard wrote:
> > > > > > "Trent" == Trent Piepho <tpiepho at impinj.com> writes:
> > +choice
> > + prompt "SSL/TLS library to use"
> > + default BR2_PACKAGE_LIBCURL_OPENSSL if BR2_PACKAGE_OPENSSL
> > + default BR2_PACKAGE_LIBCURL_GNUTLS if BR2_PACKAGE_GNUTLS
> > + default BR2_PACKAGE_LIBCURL_LIBNSS if BR2_PACKAGE_LIBNSS
> > + default BR2_PACKAGE_LIBCURL_MBEDTLS if BR2_PACKAGE_MBEDTLS
> kconfig defaults to the first available option, so these default .. if
> .. can be removed.
I thought I had to do this, but it's been a while since I made this
patch. I'll remove them.
> > +
> > +config BR2_PACKAGE_LIBCURL_NOSSL
> > + bool "No SSL/TLS support"
> Is there really a use case for building curl without TLS support if one
> or more of the libraries are available? If not, then I would simply make
> the choice depend on openssl || gnutls || libnss || mbedtls and drop
> this nossl option.
I can't think of one besides minimizing the size of libcurl. Though I
expect someone after that level of optimization would have already
turned off all TLS libraries and they don't need this option either.
It just seemed to cover all the bases consistently. I think kconfig
doesn't like it if the choice has no options selected?
Perhaps I should change this last one to a comment "no tls" stanza,
enabled when no tls support is present, that explains one needs a tls
More information about the buildroot