From: Clemens Gruber <clemens.gruber@pqgruber.com>
To: ptxdist@pengutronix.de
Cc: Clemens Gruber <clemens.gruber@pqgruber.com>
Subject: [ptxdist] [PATCH 10/19] mosh: make the crypto library configurable
Date: Fri, 1 Sep 2017 18:39:20 +0200 [thread overview]
Message-ID: <20170901163929.16585-10-clemens.gruber@pqgruber.com> (raw)
In-Reply-To: <20170901163929.16585-1-clemens.gruber@pqgruber.com>
Mosh supports OpenSSL and Nettle. Let the user decide, but default to
OpenSSL, which was hardcoded before.
Signed-off-by: Clemens Gruber <clemens.gruber@pqgruber.com>
---
rules/mosh.in | 25 +++++++++++++++++++++++--
rules/mosh.make | 2 +-
2 files changed, 24 insertions(+), 3 deletions(-)
diff --git a/rules/mosh.in b/rules/mosh.in
index 49ace4a35..398917fc7 100644
--- a/rules/mosh.in
+++ b/rules/mosh.in
@@ -1,12 +1,13 @@
## SECTION=networking
-config MOSH
+menuconfig MOSH
tristate
prompt "mosh"
select PROTOBUF
select NCURSES
select ZLIB
- select OPENSSL
+ select NETTLE if MOSH_NETTLE
+ select OPENSSL if MOSH_OPENSSL
select OPENSSH if RUNTIME
select OPENSSH_SSH if RUNTIME
select OPENSSH_SSHD if RUNTIME
@@ -15,3 +16,23 @@ config MOSH
connectivity, and provides intelligent local echo and line editing of
user keystrokes. Mosh is a replacement for SSH. It's more robust and
responsive, especially over Wi-Fi, cellular, and long-distance links.
+
+if MOSH
+
+choice
+ prompt "crypto library"
+ default MOSH_OPENSSL
+ help
+ Select the crypto library to be used
+
+ config MOSH_NETTLE
+ bool
+ prompt "nettle"
+
+ config MOSH_OPENSSL
+ bool
+ prompt "openssl"
+
+endchoice
+
+endif
diff --git a/rules/mosh.make b/rules/mosh.make
index 4fec37973..fe4b027f9 100644
--- a/rules/mosh.make
+++ b/rules/mosh.make
@@ -41,7 +41,7 @@ MOSH_CONF_OPT := \
--without-utempter \
--with-ncurses \
--without-ncursesw \
- --with-crypto-library=openssl
+ --with-crypto-library=$(call ptx/ifdef, PTXCONF_MOSH_NETTLE, nettle, openssl)
# ----------------------------------------------------------------------------
--
2.14.1
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
next prev parent reply other threads:[~2017-09-01 16:40 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-01 16:39 [ptxdist] [PATCH 01/19] busybox: version bump 1.26.2 -> 1.27.2 Clemens Gruber
2017-09-01 16:39 ` [ptxdist] [PATCH 02/19] dbus: version bump 1.10.18 -> 1.10.22 Clemens Gruber
2017-09-01 16:39 ` [ptxdist] [PATCH 03/19] dbus: add upstream patch to avoid blocking at boot time Clemens Gruber
2017-09-01 16:39 ` [ptxdist] [PATCH 04/19] e2fsprogs: version bump 1.43.4 -> 1.43.6 Clemens Gruber
2017-09-01 16:39 ` [ptxdist] [PATCH 05/19] host-imx-cst: version bump 2.3.1 -> 2.3.2 Clemens Gruber
2017-09-04 6:00 ` Denis OSTERLAND
2017-09-05 6:20 ` Michael Olbrich
2017-09-05 7:13 ` Marc Kleine-Budde
2017-09-05 14:59 ` Clemens Gruber
2017-09-06 12:42 ` Michael Olbrich
2017-09-01 16:39 ` [ptxdist] [PATCH 06/19] keyutils: version bump 1.5.9 -> 1.5.10 Clemens Gruber
2017-09-01 16:39 ` [ptxdist] [PATCH 07/19] libcap-ng: version bump 0.7.7 -> 0.7.8 Clemens Gruber
2017-09-01 16:39 ` [ptxdist] [PATCH 08/19] libgcrypt: version bump 1.7.8 -> 1.8.1 Clemens Gruber
2017-09-01 16:39 ` [ptxdist] [PATCH 09/19] mosh: version bump 1.3.0 -> 1.3.2 Clemens Gruber
2017-09-01 16:39 ` Clemens Gruber [this message]
2017-09-01 16:39 ` [ptxdist] [PATCH 11/19] mpg123: version bump 1.25.2 -> 1.25.6 Clemens Gruber
2017-09-01 16:39 ` [ptxdist] [PATCH 12/19] procps: fix configure flags Clemens Gruber
2017-09-01 16:39 ` [ptxdist] [PATCH 13/19] postgresql: specify the used license Clemens Gruber
2017-09-01 16:39 ` [ptxdist] [PATCH 14/19] strace: version bump 4.16 -> 4.18 Clemens Gruber
2017-09-01 16:39 ` [ptxdist] [PATCH 15/19] tcpdump: version bump 4.9.0 -> 4.9.1 Clemens Gruber
2017-09-01 16:39 ` [ptxdist] [PATCH 16/19] trace-cmd: version bump 2.5.2 -> 2.6.1 Clemens Gruber
2017-09-01 16:39 ` [ptxdist] [PATCH 17/19] u-boot-tools: version bump 2017.05.0 -> 2017.07.0 Clemens Gruber
2017-09-01 16:39 ` [ptxdist] [PATCH 18/19] util-linux-ng: version bump 2.30 -> 2.30.1 Clemens Gruber
2017-09-01 16:39 ` [ptxdist] [PATCH 19/19] util-linux-ng: add fsfreeze Clemens Gruber
2017-09-02 5:14 ` [ptxdist] [PATCH 01/19] busybox: version bump 1.26.2 -> 1.27.2 Alexander Dahl
2017-09-02 10:51 ` Clemens Gruber
2017-09-02 19:06 ` Alexander Dahl
2017-09-05 15:11 ` Clemens Gruber
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=20170901163929.16585-10-clemens.gruber@pqgruber.com \
--to=clemens.gruber@pqgruber.com \
--cc=ptxdist@pengutronix.de \
/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