aboutsummaryrefslogtreecommitdiff
path: root/loginutils
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2003-02-08 23:20:02 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2003-02-08 23:20:02 +0000
commit3aeaee33b6de00da1603a81fcebb15c5971b7c0a (patch)
tree9e26d3811bc41f79c95654c9ef0b74ab08331f3c /loginutils
parentb4f3d7f5948f94203687031a3cb0b123104a6516 (diff)
downloadbusybox-w32-3aeaee33b6de00da1603a81fcebb15c5971b7c0a.tar.gz
busybox-w32-3aeaee33b6de00da1603a81fcebb15c5971b7c0a.tar.bz2
busybox-w32-3aeaee33b6de00da1603a81fcebb15c5971b7c0a.zip
Patch from Joshua Jackson, make md5 the default hash algorithm
Diffstat (limited to 'loginutils')
-rw-r--r--loginutils/passwd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/loginutils/passwd.c b/loginutils/passwd.c
index c8756211a..e02cc4b81 100644
--- a/loginutils/passwd.c
+++ b/loginutils/passwd.c
@@ -23,10 +23,10 @@ static void set_filesize_limit(int blocks);
23 23
24int get_algo(char *a) 24int get_algo(char *a)
25{ 25{
26 int x = 0; /* standart: DES */ 26 int x = 1; /* standard: MD5 */
27 27
28 if (strcasecmp(a, "md5") == 0) 28 if (strcasecmp(a, "des") == 0)
29 x = 1; 29 x = 0;
30 return x; 30 return x;
31} 31}
32 32