From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v4 1/1] package/libssh2: Add selectable crypto libraries
Date: Sun, 5 Nov 2017 09:19:00 +0100 [thread overview]
Message-ID: <20171105081900.GC2996@scaer> (raw)
In-Reply-To: <87tvy92lyy.fsf@dell.be.48ers.dk>
Peter, All,
On 2017-11-05 09:01 +0100, Peter Korsgaard spake thusly:
> >>>>> "Arnout" == Arnout Vandecappelle <arnout@mind.be> writes:
> > On 01-11-17 17:22, Sam Voss wrote:
[--SNIP--]
> >> +++ b/package/libssh2/Config.in
> >> @@ -1,6 +1,5 @@
> >> 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),
> >> @@ -8,3 +7,26 @@ config BR2_PACKAGE_LIBSSH2
> >> SECSH-FILEXFER(06)*, SECSH-DHGEX(04), and SECSH-NUMBERS(10)
> >>
> >> http://www.libssh2.org/
> >> +
> >> +if BR2_PACKAGE_LIBSSH2
> >> +
> >> +choice
> >> + prompt "Crypto Backend"
> >> + help
> >> + Select crypto library to be used in libssh2.
> >> +
> >> +config BR2_PACKAGE_LIBSSH2_MBEDTLS
> >> + bool "mbedtls"
> >> + select BR2_PACKAGE_MBEDTLS
>
> > Note that this changes the defaults we had previously. If openssl was already
> > selected and you select libssh2, then openssl would be used as a backend. Now,
> > the default is mbedtls, so if you don't take any action, it will be mbedtls.
>
> > This does affect people updating Buildroot, so it needs to be mentioned in CHANGES.
>
> Why don't we just keep the old logic instead? E.G. leave the select
> openssl if !(mbedtls || libgcrypt) and then change the selects to
> depends on in the choice:
>
> choice
>
> config BR2_PACKAGE_LIBSSH2_MBEDTLS
> bool "mbedtls"
> depends on BR2_PACKAGE_MBEDTLS
>
> ...
>
> Doesn't that give us the best of both worlds? Same behaviour as before
> by default and still the option to explicitly chose when multiple
> backends are available?
That's what Sam did in the initial iterations of his patchset, but
Arnout and Thomas (IIRC) both requested he replaces that with a select
instead.
Regards,
Yann E. MORIN.
> --
> Bye, Peter Korsgaard
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
next prev parent reply other threads:[~2017-11-05 8:19 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-01 16:22 [Buildroot] [PATCH v4 1/1] package/libssh2: Add selectable crypto libraries Sam Voss
2017-11-04 21:58 ` Arnout Vandecappelle
2017-11-05 8:01 ` Peter Korsgaard
2017-11-05 8:19 ` Yann E. MORIN [this message]
2017-11-05 10:40 ` Peter Korsgaard
2017-11-05 12:46 ` Arnout Vandecappelle
2017-11-05 13:31 ` Yann E. MORIN
2017-11-05 13:50 ` Peter Korsgaard
2017-11-05 13:50 ` 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=20171105081900.GC2996@scaer \
--to=yann.morin.1998@free.fr \
--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