From 9f9cc8ed4f154b827f6b717b6d3cd5fbbb89ccf9 Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Thu, 7 Aug 2003 00:30:21 +0000 Subject: ansi --- src/lib/libc/crypt/bcrypt.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'src/lib/libc/crypt/bcrypt.c') diff --git a/src/lib/libc/crypt/bcrypt.c b/src/lib/libc/crypt/bcrypt.c index 35959d1fc4..95251db1cd 100644 --- a/src/lib/libc/crypt/bcrypt.c +++ b/src/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 @@ -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; -- cgit v1.2.3-55-g6feb