summaryrefslogtreecommitdiff
path: root/src/lib/libc/crypt
diff options
context:
space:
mode:
authorderaadt <>1997-06-29 05:48:02 +0000
committerderaadt <>1997-06-29 05:48:02 +0000
commitdaa06c504bb8dd13869863b86b09be9adbdf7045 (patch)
tree7faa46c80e362ccb88c40f31f71db4682528a4b1 /src/lib/libc/crypt
parentefd65cbc303c4bcc35b3f76ecd48ce0505bed6f5 (diff)
downloadopenbsd-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.c10
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)
16static char rcsid[] = "$OpenBSD: md5crypt.c,v 1.7 1996/12/14 06:49:36 tholo Exp $"; 16static 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
25static unsigned char itoa64[] = /* 0 ... 63 => ascii - 64 */ 25static unsigned char itoa64[] = /* 0 ... 63 => ascii - 64 */
26 "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; 26 "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
27 27
28static void to64 __P((char *, unsigned long, int)); 28static void to64 __P((char *, u_int32_t, int));
29 29
30static void 30static void
31to64(s, v, n) 31to64(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;