summaryrefslogtreecommitdiff
path: root/src/lib/libc/crypt
diff options
context:
space:
mode:
authorderaadt <>2003-06-25 21:16:47 +0000
committerderaadt <>2003-06-25 21:16:47 +0000
commita87df78dc91434563f4a86616aa2bd6c71d91331 (patch)
treed96fc6298d7ca246906dcfd371249d9c474d45c1 /src/lib/libc/crypt
parent202e02ad6abad69d443409ff15fb9b68760a94b8 (diff)
downloadopenbsd-a87df78dc91434563f4a86616aa2bd6c71d91331.tar.gz
openbsd-a87df78dc91434563f4a86616aa2bd6c71d91331.tar.bz2
openbsd-a87df78dc91434563f4a86616aa2bd6c71d91331.zip
protos
Diffstat (limited to 'src/lib/libc/crypt')
-rw-r--r--src/lib/libc/crypt/bcrypt.c4
-rw-r--r--src/lib/libc/crypt/md5crypt.c6
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
175char *bcrypt(const char *key, const char *salt);
176
175char * 177char *
176bcrypt(key, salt) 178bcrypt(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)
16static char rcsid[] = "$OpenBSD: md5crypt.c,v 1.11 2003/04/02 20:35:29 millert Exp $"; 16static 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
48char *md5crypt(const char *pw, const char *salt);
49
48char * 50char *
49md5crypt(pw, salt) 51md5crypt(pw, salt)
50 register const char *pw; 52 register const char *pw;