uclibc insists on having 70k static buffer for crypt.
authorDenis Vlasenko <vda.linux@googlemail.com>
Thu, 12 Jun 2008 16:55:59 +0000 (16:55 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Thu, 12 Jun 2008 16:55:59 +0000 (16:55 -0000)
commit4ea83bf562c44a6792e7c77e7d87cba91f86f763
tree64dba9163b29724e282c1e94027001a11978e74b
parent9de462205542547694299e9fe2bc321088ab79aa
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.
include/libbb.h
libbb/correct_password.c
libbb/pw_encrypt.c
libbb/pw_encrypt_des.c [new file with mode: 0644]
libbb/pw_encrypt_md5.c [new file with mode: 0644]
loginutils/chpasswd.c
loginutils/cryptpw.c
loginutils/passwd.c
loginutils/sulogin.c
networking/httpd.c