diff options
author | Adam Duskett <aduskett@gmail.com> | 2017-10-17 22:32:28 -0400 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2017-10-21 21:28:13 +0200 |
commit | f974a493f03bf9ab9df9111782e838a70d616a57 (patch) | |
tree | b98d8b4c28bd9aeb52c9ebb313f196a360f16afd /package/openssl/Config.in | |
parent | 3fcaa12800aa8d104aef095478e6c4ba431cd707 (diff) | |
download | buildroot-f974a493f03bf9ab9df9111782e838a70d616a57.tar.gz buildroot-f974a493f03bf9ab9df9111782e838a70d616a57.zip |
openssl: new virtual package
To ease the transition to having both OpenSSL and LibreSSL, there has to be
a new virtual package introduced to handle both.
Instead of making a libssl, and adding OpenSSL and libressl to that package,
it will be far easier to move openssl to libopenssl and to make OpenSSL
a virtual package. This offers a few advantages:
- BR2_PACKAGE_OPENSSL is still a visible symbol with no dependencies.
- It does not require a huge patch to convert every instance of
OpenSSL -> libssl)
- Users will be able to update without ever having to select anything new.
- LibreSSL can be added at a later date to the virtual package.
Signed-off-by: Adam Duskett <Adamduskett@outlook.com>
[Thomas: define BR2_PACKAGE_PROVIDES_HOST_OPENSSL to the value
"host-libopenssl" as we always want to use the original OpenSSL for
the host variant.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/openssl/Config.in')
-rw-r--r-- | package/openssl/Config.in | 50 |
1 files changed, 40 insertions, 10 deletions
diff --git a/package/openssl/Config.in b/package/openssl/Config.in index e08b648ba4..6cb469a327 100644 --- a/package/openssl/Config.in +++ b/package/openssl/Config.in @@ -1,28 +1,58 @@ config BR2_PACKAGE_OPENSSL + 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 + Select OpenSSL. + +config BR2_PACKAGE_LIBOPENSSL bool "openssl" select BR2_PACKAGE_ZLIB help - 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. + 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. http://www.openssl.org/ Note: Some helper scripts need perl. -if BR2_PACKAGE_OPENSSL +if BR2_PACKAGE_LIBOPENSSL -config BR2_PACKAGE_OPENSSL_BIN +config BR2_PACKAGE_LIBOPENSSL_BIN bool "openssl binary" help - 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. + 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. -config BR2_PACKAGE_OPENSSL_ENGINES +config BR2_PACKAGE_LIBOPENSSL_ENGINES bool "openssl additional engines" help Install additional encryption engine libraries. endif + +endchoice + +config BR2_PACKAGE_HAS_OPENSSL + bool + +config BR2_PACKAGE_PROVIDES_OPENSSL + string + default "libopenssl" if BR2_PACKAGE_LIBOPENSSL + +config BR2_PACKAGE_PROVIDES_HOST_OPENSSL + string + default "host-libopenssl" + +endif |