diff options
author | deraadt <> | 1997-06-29 05:48:02 +0000 |
---|---|---|
committer | deraadt <> | 1997-06-29 05:48:02 +0000 |
commit | daa06c504bb8dd13869863b86b09be9adbdf7045 (patch) | |
tree | 7faa46c80e362ccb88c40f31f71db4682528a4b1 /src/lib/libc/crypt | |
parent | efd65cbc303c4bcc35b3f76ecd48ce0505bed6f5 (diff) | |
download | openbsd-daa06c504bb8dd13869863b86b09be9adbdf7045.tar.gz openbsd-daa06c504bb8dd13869863b86b09be9adbdf7045.tar.bz2 openbsd-daa06c504bb8dd13869863b86b09be9adbdf7045.zip |
surely not long!
Diffstat (limited to 'src/lib/libc/crypt')
-rw-r--r-- | src/lib/libc/crypt/md5crypt.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libc/crypt/md5crypt.c b/src/lib/libc/crypt/md5crypt.c index e8af0cb08c..318626a2e6 100644 --- a/src/lib/libc/crypt/md5crypt.c +++ b/src/lib/libc/crypt/md5crypt.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: md5crypt.c,v 1.7 1996/12/14 06:49:36 tholo Exp $ */ | 1 | /* $OpenBSD: md5crypt.c,v 1.8 1997/06/29 05:48:02 deraadt Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * ---------------------------------------------------------------------------- | 4 | * ---------------------------------------------------------------------------- |
@@ -13,7 +13,7 @@ | |||
13 | */ | 13 | */ |
14 | 14 | ||
15 | #if defined(LIBC_SCCS) && !defined(lint) | 15 | #if defined(LIBC_SCCS) && !defined(lint) |
16 | static char rcsid[] = "$OpenBSD: md5crypt.c,v 1.7 1996/12/14 06:49:36 tholo Exp $"; | 16 | static char rcsid[] = "$OpenBSD: md5crypt.c,v 1.8 1997/06/29 05:48:02 deraadt Exp $"; |
17 | #endif /* LIBC_SCCS and not lint */ | 17 | #endif /* LIBC_SCCS and not lint */ |
18 | 18 | ||
19 | #include <unistd.h> | 19 | #include <unistd.h> |
@@ -25,12 +25,12 @@ static char rcsid[] = "$OpenBSD: md5crypt.c,v 1.7 1996/12/14 06:49:36 tholo Exp | |||
25 | static unsigned char itoa64[] = /* 0 ... 63 => ascii - 64 */ | 25 | static unsigned char itoa64[] = /* 0 ... 63 => ascii - 64 */ |
26 | "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; | 26 | "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; |
27 | 27 | ||
28 | static void to64 __P((char *, unsigned long, int)); | 28 | static void to64 __P((char *, u_int32_t, int)); |
29 | 29 | ||
30 | static void | 30 | static void |
31 | to64(s, v, n) | 31 | to64(s, v, n) |
32 | char *s; | 32 | char *s; |
33 | unsigned long v; | 33 | u_int32_t v; |
34 | int n; | 34 | int n; |
35 | { | 35 | { |
36 | while (--n >= 0) { | 36 | while (--n >= 0) { |
@@ -61,7 +61,7 @@ md5crypt(pw, salt) | |||
61 | unsigned char final[16]; | 61 | unsigned char final[16]; |
62 | int sl,pl,i; | 62 | int sl,pl,i; |
63 | MD5_CTX ctx,ctx1; | 63 | MD5_CTX ctx,ctx1; |
64 | unsigned long l; | 64 | u_int32_t l; |
65 | 65 | ||
66 | /* Refine the Salt first */ | 66 | /* Refine the Salt first */ |
67 | sp = (const unsigned char *)salt; | 67 | sp = (const unsigned char *)salt; |