summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruno Thomsen <bruno.thomsen@gmail.com>2020-07-31 18:11:36 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2020-08-02 10:03:09 +0200
commit0f6af4e9c20116629fa321e836cfa376619c433b (patch)
tree1868c33156b618363df458bee3c915b5202ad46d
parent5fd26801a2a57313971f10f351149cf9ec421050 (diff)
downloadptxdist-0f6af4e9c20116629fa321e836cfa376619c433b.tar.gz
ptxdist-0f6af4e9c20116629fa321e836cfa376619c433b.tar.xz
chrony: nettle authentication support
Use nettle crypto lib for stronger time packet authentication support. Signed-off-by: Bruno Thomsen <bruno.thomsen@gmail.com> Message-Id: <20200731161141.6155-2-bruno.thomsen@gmail.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/chrony.in8
-rw-r--r--rules/chrony.make4
2 files changed, 10 insertions, 2 deletions
diff --git a/rules/chrony.in b/rules/chrony.in
index 1f5e241c9..e150448a8 100644
--- a/rules/chrony.in
+++ b/rules/chrony.in
@@ -6,6 +6,7 @@ menuconfig CHRONY
prompt "chrony "
select LIBC_M
select LIBCAP
+ select NETTLE if CHRONY_USE_NETTLE
help
This will install the Chrony NTPD Daemon (chronyd)
Chrony is a pair of programs which are used to maintain
@@ -21,6 +22,13 @@ menuconfig CHRONY
if CHRONY
+config CHRONY_USE_NETTLE
+ bool
+ prompt "Use nettle crypto library"
+ help
+ Use nettle crypto library for stronger keys than MD5 in
+ NTP authentication.
+
comment "install options ---"
config CHRONY_INSTALL_CHRONY_COMMAND
diff --git a/rules/chrony.make b/rules/chrony.make
index 8c1034462..9f20c413d 100644
--- a/rules/chrony.make
+++ b/rules/chrony.make
@@ -44,8 +44,8 @@ CHRONY_CONF_OPT := \
--sysconfdir=/etc \
--disable-readline \
--without-editline \
- --disable-sechash \
- --without-nettle \
+ $(call ptx/ifdef, PTXCONF_CHRONY_USE_NETTLE,,--disable-sechash) \
+ $(call ptx/ifdef, PTXCONF_CHRONY_USE_NETTLE,,--without-nettle) \
--without-nss \
--without-tomcrypt \
--disable-cmdmon \