2017-10-21 18:21:09 +02:00
|
|
|
config BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL
|
|
|
|
bool
|
|
|
|
|
2004-10-09 08:13:40 +02:00
|
|
|
config BR2_PACKAGE_OPENSSL
|
2017-10-18 04:32:28 +02:00
|
|
|
bool "openssl support"
|
|
|
|
select BR2_PACKAGE_HAS_OPENSSL
|
|
|
|
help
|
|
|
|
Select the desired ssl library provider.
|
|
|
|
|
|
|
|
if BR2_PACKAGE_OPENSSL
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "ssl library"
|
|
|
|
default BR2_PACKAGE_LIBOPENSSL
|
|
|
|
help
|
2017-10-18 04:32:40 +02:00
|
|
|
Select OpenSSL or LibreSSL.
|
2017-10-18 04:32:28 +02:00
|
|
|
|
|
|
|
config BR2_PACKAGE_LIBOPENSSL
|
2004-12-26 08:36:59 +01:00
|
|
|
bool "openssl"
|
2008-09-24 11:10:06 +02:00
|
|
|
select BR2_PACKAGE_ZLIB
|
2004-10-09 08:13:40 +02:00
|
|
|
help
|
2017-10-18 04:32:28 +02:00
|
|
|
A collaborative effort to develop a robust, commercial-grade,
|
|
|
|
fully featured, and Open Source toolkit implementing the
|
|
|
|
Secure Sockets Layer (SSL v2/v3) and Transport Security
|
|
|
|
(TLS v1) as well as a full-strength general-purpose
|
|
|
|
cryptography library.
|
2004-10-09 08:13:40 +02:00
|
|
|
|
2004-12-26 08:36:59 +01:00
|
|
|
http://www.openssl.org/
|
2005-07-12 21:53:12 +02:00
|
|
|
|
openssl: always build apps
Now that building the openssl binary without MMU is supported, the only
reason left for not building apps if the openssl binary is disabled is
to save build time. Moreover, the commit
720893b62510438237b9923d744dd079ddb4f67d "openssl: disable apps for
NOMMU", which added this behavior, had a side effect: the scripts from
apps (CA.pl, CA.sh and tsget) and the default configuration file
(openssl.cnf) were no longer installed, which is not advertized by the
BR2_PACKAGE_OPENSSL_BIN option. CA.pl and CA.sh use the openssl binary,
so not installing them without the latter makes sense. But tsget does
not use the openssl binary, and openssl.cnf can be used by libcrypto, so
it is preferable to handle BR2_PACKAGE_OPENSSL_BIN like before the
commit mentioned above, i.e. to always build and install apps and to
just remove the openssl binary afterwards if needed.
This is what the current commit does, but installing only the helper
scripts having their dependencies (perl or the openssl binary)
satisfied. The help text is updated accordingly.
Signed-off-by: Benoît Thébaudeau <benoit@wsystem.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-07-06 15:06:08 +02:00
|
|
|
Note: Some helper scripts need perl.
|
|
|
|
|
2017-10-18 04:32:28 +02:00
|
|
|
if BR2_PACKAGE_LIBOPENSSL
|
2013-12-20 22:31:30 +01:00
|
|
|
|
2017-10-18 04:32:28 +02:00
|
|
|
config BR2_PACKAGE_LIBOPENSSL_BIN
|
2008-09-24 11:10:06 +02:00
|
|
|
bool "openssl binary"
|
2005-07-12 21:53:12 +02:00
|
|
|
help
|
2017-10-18 04:32:28 +02:00
|
|
|
Install the openssl binary and the associated helper scripts
|
|
|
|
to the target file system. This is a command line tool for
|
|
|
|
doing various cryptographic stuff.
|
2008-09-24 11:10:06 +02:00
|
|
|
|
2017-10-18 04:32:28 +02:00
|
|
|
config BR2_PACKAGE_LIBOPENSSL_ENGINES
|
2008-09-24 11:10:06 +02:00
|
|
|
bool "openssl additional engines"
|
|
|
|
help
|
|
|
|
Install additional encryption engine libraries.
|
2013-12-20 22:31:30 +01:00
|
|
|
|
|
|
|
endif
|
2017-10-18 04:32:28 +02:00
|
|
|
|
2017-10-18 04:32:40 +02:00
|
|
|
config BR2_PACKAGE_LIBRESSL
|
|
|
|
bool "libressl"
|
|
|
|
depends on !BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL
|
2017-11-06 10:54:21 +01:00
|
|
|
# uClibc on noMMU doesn't provide __register_atfork()
|
|
|
|
depends on !(BR2_TOOLCHAIN_USES_UCLIBC && !BR2_USE_MMU)
|
2017-10-18 04:32:40 +02:00
|
|
|
help
|
|
|
|
LibreSSL is a version of the TLS/crypto stack forked from
|
|
|
|
OpenSSL in 2014, with goals of modernizing the codebase,
|
|
|
|
improving security, and applying best practice development
|
|
|
|
processes.
|
|
|
|
|
|
|
|
http://www.libressl.org/
|
|
|
|
|
|
|
|
if BR2_PACKAGE_LIBRESSL
|
|
|
|
|
|
|
|
config BR2_PACKAGE_LIBRESSL_BIN
|
|
|
|
bool "openssl binary"
|
|
|
|
help
|
|
|
|
Install the openssl binary to the target file system. This is
|
|
|
|
a command line tool for doing various cryptographic stuff.
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2017-10-18 04:32:28 +02:00
|
|
|
endchoice
|
|
|
|
|
|
|
|
config BR2_PACKAGE_HAS_OPENSSL
|
|
|
|
bool
|
|
|
|
|
|
|
|
config BR2_PACKAGE_PROVIDES_OPENSSL
|
|
|
|
string
|
|
|
|
default "libopenssl" if BR2_PACKAGE_LIBOPENSSL
|
2017-10-18 04:32:40 +02:00
|
|
|
default "libressl" if BR2_PACKAGE_LIBRESSL
|
2017-10-18 04:32:28 +02:00
|
|
|
|
2017-10-22 13:56:01 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
# ensure libopenssl is used for the host variant
|
2017-10-18 04:32:28 +02:00
|
|
|
config BR2_PACKAGE_PROVIDES_HOST_OPENSSL
|
|
|
|
string
|
|
|
|
default "host-libopenssl"
|