From d744c2b7ad01d4fbe3da2e589488684b36be7830 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Thu, 7 Aug 2003 00:28:46 +0000 Subject: ansi --- lib/libc/crypt/bcrypt.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'lib/libc') 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 @@ -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