summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-08-07 00:28:46 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-08-07 00:28:46 +0000
commitd744c2b7ad01d4fbe3da2e589488684b36be7830 (patch)
tree940d7086ec8ab3ef07e1105e84d409aedcb6c31c /lib
parentc259d3ebef8327a1f63e0f1be18643b110e55db2 (diff)
ansi
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/crypt/bcrypt.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/lib/libc/crypt/bcrypt.c b/lib/libc/crypt/bcrypt.c
index 35959d1fc44..95251db1cdb 100644
--- a/lib/libc/crypt/bcrypt.c
+++ b/lib/libc/crypt/bcrypt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bcrypt.c,v 1.17 2003/06/25 21:16:47 deraadt Exp $ */
+/* $OpenBSD: bcrypt.c,v 1.18 2003/08/07 00:28:45 deraadt Exp $ */
/*
* Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de>
@@ -79,8 +79,7 @@ static char error[] = ":";
const static u_int8_t Base64Code[] =
"./ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
-const static u_int8_t index_64[128] =
-{
+const static u_int8_t index_64[128] = {
255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
@@ -172,12 +171,8 @@ bcrypt_gensalt(u_int8_t log_rounds)
/* We handle $Vers$log2(NumRounds)$salt+passwd$
i.e. $2$04$iwouldntknowwhattosayetKdJ6iFtacBqJdKe6aW7ou */
-char *bcrypt(const char *key, const char *salt);
-
char *
-bcrypt(key, salt)
- const char *key;
- const char *salt;
+bcrypt(const char *key, const char *salt)
{
blf_ctx state;
u_int32_t rounds, i, k;