kumquat-buildroot/package/libssh/Config.in
Mircea Gliga c93ddf0eaf package/libssh: add support for mbedtls crypto backend
At this point Buildroot doesn't allow to use mbedTLS crypto
backend even though libssh supports it. In case of fully statically
linked ELF executables the size difference between OpenSSL and mbedTLS
is significant: it matters for embedded targets with very limited
storage.

This patch adds support for compiling libssh with mbedTLS as a crypto
backend.  It also allows the selection of the crypto backend libssh will use
through a choice in the package config, similar to libssh2.

Currently, the selection of the backend is based on a priority order,
which is not always desirable, as in some cases multiple backends
can exists at the same time for various reasons.

Signed-off-by: Mircea Gliga <gliga.mircea@gmail.com>
[Peter: use depends on rather can select for consistency with libssh2]
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2020-02-02 20:37:01 +01:00

46 lines
1.1 KiB
Plaintext

config BR2_PACKAGE_LIBSSH
bool "libssh"
depends on BR2_USE_MMU # fork()
depends on !BR2_STATIC_LIBS
depends on BR2_TOOLCHAIN_HAS_THREADS
select BR2_PACKAGE_OPENSSL if !(BR2_PACKAGE_MBEDTLS || BR2_PACKAGE_LIBGCRYPT)
help
libssh is a multiplatform C library implementing the SSHv2
and SSHv1 protocol on client and server side. With libssh,
you can remotely execute programs, transfer files, use a
secure and transparent tunnel for your remote applications.
http://www.libssh.org/
if BR2_PACKAGE_LIBSSH
config BR2_PACKAGE_LIBSSH_SERVER
bool "server"
help
Enable libssh server support
choice
prompt "Crypto Backend"
help
Select crypto library to be used in libssh.
config BR2_PACKAGE_LIBSSH_MBEDTLS
bool "mbedtls"
depends on BR2_PACKAGE_MBEDTLS
config BR2_PACKAGE_LIBSSH_LIBGCRYPT
bool "gcrypt"
depends on BR2_PACKAGE_LIBGCRYPT
config BR2_PACKAGE_LIBSSH_OPENSSL
bool "openssl"
depends on BR2_PACKAGE_OPENSSL
endchoice
endif
comment "libssh needs a toolchain w/ dynamic library, threads"
depends on BR2_USE_MMU
depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS