From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jyzwI-00073f-F2 for ptxdist@pengutronix.de; Fri, 24 Jul 2020 17:48:51 +0200 Received: by mail-wr1-x442.google.com with SMTP id y3so8740188wrl.4 for ; Fri, 24 Jul 2020 08:48:50 -0700 (PDT) From: Bruno Thomsen Date: Fri, 24 Jul 2020 17:48:39 +0200 Message-Id: <20200724154843.5552-2-bruno.thomsen@gmail.com> In-Reply-To: <20200724154843.5552-1-bruno.thomsen@gmail.com> References: <20200724154843.5552-1-bruno.thomsen@gmail.com> MIME-Version: 1.0 Subject: [ptxdist] [PATCH 2/6] chrony: nettle authentication support List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Cc: Bruno Thomsen , bth@kamstrup.com Use nettle crypto lib for stronger time packet authentication support. Signed-off-by: Bruno Thomsen --- rules/chrony.in | 8 ++++++++ rules/chrony.make | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/rules/chrony.in b/rules/chrony.in index ccdcb71d0..9eac48971 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 3b7456618..3f90a00b1 100644 --- a/rules/chrony.make +++ b/rules/chrony.make @@ -39,8 +39,8 @@ CHRONY_CONF_OPT := \ $(CROSS_AUTOCONF_USR) \ --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 \ -- 2.26.2 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de