mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Matthias Klein <matthias.klein@optimeas.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] busybox: use SHA512 for new passwords when SHA256/512 support is enabled
Date: Thu,  6 Mar 2014 12:27:43 +0100	[thread overview]
Message-ID: <1394105263-19404-1-git-send-email-matthias.klein@optimeas.de> (raw)


Signed-off-by: Matthias Klein <matthias.klein@optimeas.de>
---
 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

                 reply	other threads:[~2014-03-06 11:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1394105263-19404-1-git-send-email-matthias.klein@optimeas.de \
    --to=matthias.klein@optimeas.de \
    --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