Browse Source

protos

OPENBSD_3_4
deraadt 21 years ago
parent
commit
18e2ca0116
2 changed files with 7 additions and 3 deletions
  1. +3
    -1
      src/lib/libc/crypt/bcrypt.c
  2. +4
    -2
      src/lib/libc/crypt/md5crypt.c

+ 3
- 1
src/lib/libc/crypt/bcrypt.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: bcrypt.c,v 1.16 2002/02/19 19:39:36 millert Exp $ */
/* $OpenBSD: bcrypt.c,v 1.17 2003/06/25 21:16:47 deraadt Exp $ */
/* /*
* Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de> * Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de>
@ -172,6 +172,8 @@ bcrypt_gensalt(u_int8_t log_rounds)
/* We handle $Vers$log2(NumRounds)$salt+passwd$ /* We handle $Vers$log2(NumRounds)$salt+passwd$
i.e. $2$04$iwouldntknowwhattosayetKdJ6iFtacBqJdKe6aW7ou */ i.e. $2$04$iwouldntknowwhattosayetKdJ6iFtacBqJdKe6aW7ou */
char *bcrypt(const char *key, const char *salt);
char * char *
bcrypt(key, salt) bcrypt(key, salt)
const char *key; const char *key;


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

@ -1,4 +1,4 @@
/* $OpenBSD: md5crypt.c,v 1.11 2003/04/02 20:35:29 millert Exp $ */
/* $OpenBSD: md5crypt.c,v 1.12 2003/06/25 21:16:47 deraadt Exp $ */
/* /*
* ---------------------------------------------------------------------------- * ----------------------------------------------------------------------------
@ -13,7 +13,7 @@
*/ */
#if defined(LIBC_SCCS) && !defined(lint) #if defined(LIBC_SCCS) && !defined(lint)
static char rcsid[] = "$OpenBSD: md5crypt.c,v 1.11 2003/04/02 20:35:29 millert Exp $";
static char rcsid[] = "$OpenBSD: md5crypt.c,v 1.12 2003/06/25 21:16:47 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */ #endif /* LIBC_SCCS and not lint */
#include <unistd.h> #include <unistd.h>
@ -45,6 +45,8 @@ to64(s, v, n)
* Use MD5 for what it is best at... * Use MD5 for what it is best at...
*/ */
char *md5crypt(const char *pw, const char *salt);
char * char *
md5crypt(pw, salt) md5crypt(pw, salt)
register const char *pw; register const char *pw;


Loading…
Cancel
Save