diff options
Diffstat (limited to 'src/lib/libc')
| -rw-r--r-- | src/lib/libc/crypt/bcrypt.c | 4 | ||||
| -rw-r--r-- | src/lib/libc/crypt/md5crypt.c | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/lib/libc/crypt/bcrypt.c b/src/lib/libc/crypt/bcrypt.c index dec0093dd8..35959d1fc4 100644 --- a/src/lib/libc/crypt/bcrypt.c +++ b/src/lib/libc/crypt/bcrypt.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: bcrypt.c,v 1.16 2002/02/19 19:39:36 millert Exp $ */ | 1 | /* $OpenBSD: bcrypt.c,v 1.17 2003/06/25 21:16:47 deraadt Exp $ */ |
| 2 | 2 | ||
| 3 | /* | 3 | /* |
| 4 | * Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de> | 4 | * Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de> |
| @@ -172,6 +172,8 @@ bcrypt_gensalt(u_int8_t log_rounds) | |||
| 172 | /* We handle $Vers$log2(NumRounds)$salt+passwd$ | 172 | /* We handle $Vers$log2(NumRounds)$salt+passwd$ |
| 173 | i.e. $2$04$iwouldntknowwhattosayetKdJ6iFtacBqJdKe6aW7ou */ | 173 | i.e. $2$04$iwouldntknowwhattosayetKdJ6iFtacBqJdKe6aW7ou */ |
| 174 | 174 | ||
| 175 | char *bcrypt(const char *key, const char *salt); | ||
| 176 | |||
| 175 | char * | 177 | char * |
| 176 | bcrypt(key, salt) | 178 | bcrypt(key, salt) |
| 177 | const char *key; | 179 | const char *key; |
diff --git a/src/lib/libc/crypt/md5crypt.c b/src/lib/libc/crypt/md5crypt.c index 048858494c..fb09b375e6 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.11 2003/04/02 20:35:29 millert Exp $ */ | 1 | /* $OpenBSD: md5crypt.c,v 1.12 2003/06/25 21:16:47 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.11 2003/04/02 20:35:29 millert Exp $"; | 16 | static char rcsid[] = "$OpenBSD: md5crypt.c,v 1.12 2003/06/25 21:16:47 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> |
| @@ -45,6 +45,8 @@ to64(s, v, n) | |||
| 45 | * Use MD5 for what it is best at... | 45 | * Use MD5 for what it is best at... |
| 46 | */ | 46 | */ |
| 47 | 47 | ||
| 48 | char *md5crypt(const char *pw, const char *salt); | ||
| 49 | |||
| 48 | char * | 50 | char * |
| 49 | md5crypt(pw, salt) | 51 | md5crypt(pw, salt) |
| 50 | register const char *pw; | 52 | register const char *pw; |
