diff options
| author | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-02-08 23:20:02 +0000 |
|---|---|---|
| committer | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-02-08 23:20:02 +0000 |
| commit | e16b52cf97bbf3785ffe7b395b27469688b31376 (patch) | |
| tree | 9e26d3811bc41f79c95654c9ef0b74ab08331f3c /loginutils | |
| parent | 6252c2a9448142c310b3cc69abee739712aa8da6 (diff) | |
| download | busybox-w32-e16b52cf97bbf3785ffe7b395b27469688b31376.tar.gz busybox-w32-e16b52cf97bbf3785ffe7b395b27469688b31376.tar.bz2 busybox-w32-e16b52cf97bbf3785ffe7b395b27469688b31376.zip | |
Patch from Joshua Jackson, make md5 the default hash algorithm
git-svn-id: svn://busybox.net/trunk/busybox@6538 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'loginutils')
| -rw-r--r-- | loginutils/passwd.c | 6 |
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 | ||
| 24 | int get_algo(char *a) | 24 | int 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 | ||
