From 4ea83bf562c44a6792e7c77e7d87cba91f86f763 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Thu, 12 Jun 2008 16:55:59 +0000 Subject: uclibc insists on having 70k static buffer for crypt. For bbox it's not acceptable. Roll our own des and md5 crypt implementation. Against older uclibc: text data bss dec hex filename 759945 604 6684 767233 bb501 busybox_old 759766 604 6684 767054 bb44e busybox_unstripped so, we still save on code size. --- libbb/correct_password.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libbb/correct_password.c') diff --git a/libbb/correct_password.c b/libbb/correct_password.c index 96bb10e0b..a4ded8b5f 100644 --- a/libbb/correct_password.c +++ b/libbb/correct_password.c @@ -71,7 +71,7 @@ int correct_password(const struct passwd *pw) if (!unencrypted) { return 0; } - encrypted = crypt(unencrypted, correct); + encrypted = pw_encrypt(unencrypted, correct, 1); memset(unencrypted, 0, strlen(unencrypted)); return strcmp(encrypted, correct) == 0; } -- cgit v1.2.3