From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from optimeas.de ([78.46.18.2]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1WLWSq-0007DH-Nq for ptxdist@pengutronix.de; Thu, 06 Mar 2014 12:27:50 +0100 Received: from wheezy.optimeas.int. (ip-178-202-77-12.unitymediagroup.de [178.202.77.12]) by optimeas.de (Postfix) with ESMTPSA id 568454207A63 for ; Thu, 6 Mar 2014 12:27:43 +0100 (CET) From: Matthias Klein Date: Thu, 6 Mar 2014 12:27:43 +0100 Message-Id: <1394105263-19404-1-git-send-email-matthias.klein@optimeas.de> Subject: [ptxdist] [PATCH] busybox: use SHA512 for new passwords when SHA256/512 support is enabled Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Signed-off-by: Matthias Klein --- rules/busybox.make | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rules/busybox.make b/rules/busybox.make index 7a37f43..53cc1ca 100644 --- a/rules/busybox.make +++ b/rules/busybox.make @@ -43,6 +43,11 @@ $(STATEDIR)/busybox.prepare: @grep -e PTXCONF_BUSYBOX_ $(PTXDIST_PTXCONFIG) | \ sed -e 's/PTXCONF_BUSYBOX_/CONFIG_/g' > $(BUSYBOX_DIR)/.config +ifdef PTXCONF_BUSYBOX_USE_BB_CRYPT_SHA + @sed -i -e 's,^CONFIG_FEATURE_DEFAULT_PASSWD_ALGO.*$$,CONFIG_FEATURE_DEFAULT_PASSWD_ALGO=\"sha512\",g' \ + "$(BUSYBOX_DIR)/.config" +endif + @$(call ptx/oldconfig, BUSYBOX) @$(call touch) -- 1.7.10.4 -- ptxdist mailing list ptxdist@pengutronix.de