Browse Source

surely not long!

OPENBSD_2_2
deraadt 27 years ago
parent
commit
e385c811bb
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      src/lib/libc/crypt/md5crypt.c

+ 5
- 5
src/lib/libc/crypt/md5crypt.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: md5crypt.c,v 1.7 1996/12/14 06:49:36 tholo Exp $ */
/* $OpenBSD: md5crypt.c,v 1.8 1997/06/29 05:48:02 deraadt Exp $ */
/*
* ----------------------------------------------------------------------------
@ -13,7 +13,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
static char rcsid[] = "$OpenBSD: md5crypt.c,v 1.7 1996/12/14 06:49:36 tholo Exp $";
static char rcsid[] = "$OpenBSD: md5crypt.c,v 1.8 1997/06/29 05:48:02 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#include <unistd.h>
@ -25,12 +25,12 @@ static char rcsid[] = "$OpenBSD: md5crypt.c,v 1.7 1996/12/14 06:49:36 tholo Exp
static unsigned char itoa64[] = /* 0 ... 63 => ascii - 64 */
"./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
static void to64 __P((char *, unsigned long, int));
static void to64 __P((char *, u_int32_t, int));
static void
to64(s, v, n)
char *s;
unsigned long v;
u_int32_t v;
int n;
{
while (--n >= 0) {
@ -61,7 +61,7 @@ md5crypt(pw, salt)
unsigned char final[16];
int sl,pl,i;
MD5_CTX ctx,ctx1;
unsigned long l;
u_int32_t l;
/* Refine the Salt first */
sp = (const unsigned char *)salt;


Loading…
Cancel
Save