From: Peter Korsgaard <peter@korsgaard.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] libssh2: revert to previous crypto defaults
Date: Sun, 5 Nov 2017 22:34:02 +0100 [thread overview]
Message-ID: <20171105213402.26615-1-peter@korsgaard.com> (raw)
The recent crypto handling change (commit 04a1031d3: package/libssh2: Add
selectable crypto libraries) had the unfortunate side effect that it no
longer automatically selects the most suitable crypto backend (E.G. one
where the dependency is already enabled), so all users not wanting to use
the mbedtls backend need to explicitly configure this.
Fix this by inverting the logic so the crypto backend sub options use
'depends on' their dependencies instead of 'select', so only the available
backends are displayed.
Like before, default to openssl if no crypto backend dependencies are
currently enabled.
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
package/libssh2/Config.in | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/package/libssh2/Config.in b/package/libssh2/Config.in
index f2d32a90ae..90c38813b3 100644
--- a/package/libssh2/Config.in
+++ b/package/libssh2/Config.in
@@ -1,5 +1,6 @@
config BR2_PACKAGE_LIBSSH2
bool "libssh2"
+ select BR2_PACKAGE_OPENSSL if !(BR2_PACKAGE_MBEDTLS || BR2_PACKAGE_LIBGCRYPT)
help
libssh2 is a client-side C library implementing the SSH2
protocol as defined by Internet Drafts: SECSH-TRANS(22),
@@ -17,16 +18,15 @@ choice
config BR2_PACKAGE_LIBSSH2_MBEDTLS
bool "mbedtls"
- select BR2_PACKAGE_MBEDTLS
+ depends on BR2_PACKAGE_MBEDTLS
config BR2_PACKAGE_LIBSSH2_LIBGCRYPT
bool "gcrypt"
- depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS # libgcrypt -> libgpg-error
- select BR2_PACKAGE_LIBGCRYPT
+ depends on BR2_PACKAGE_LIBGCRYPT
config BR2_PACKAGE_LIBSSH2_OPENSSL
bool "openssl"
- select BR2_PACKAGE_OPENSSL
+ depends on BR2_PACKAGE_OPENSSL
endchoice
endif
--
2.11.0
next reply other threads:[~2017-11-05 21:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-05 21:34 Peter Korsgaard [this message]
2017-11-06 4:49 ` [Buildroot] [PATCH] libssh2: revert to previous crypto defaults Baruch Siach
2017-11-06 6:22 ` Peter Korsgaard
2017-11-06 17:43 ` Peter Korsgaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171105213402.26615-1-peter@korsgaard.com \
--to=peter@korsgaard.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox