diff options
author | millert <> | 2002-02-16 21:27:50 +0000 |
---|---|---|
committer | millert <> | 2002-02-16 21:27:50 +0000 |
commit | 052e020be6be85be6238c44b8386a61f8db7b6a4 (patch) | |
tree | 4cf8f905bd37027527533678516a258fa89e2696 /src/lib/libc/crypt/bcrypt.c | |
parent | ee0af55ed65515812050f3b9a8d431c941b73eb8 (diff) | |
download | openbsd-052e020be6be85be6238c44b8386a61f8db7b6a4.tar.gz openbsd-052e020be6be85be6238c44b8386a61f8db7b6a4.tar.bz2 openbsd-052e020be6be85be6238c44b8386a61f8db7b6a4.zip |
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
Diffstat (limited to 'src/lib/libc/crypt/bcrypt.c')
-rw-r--r-- | src/lib/libc/crypt/bcrypt.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libc/crypt/bcrypt.c b/src/lib/libc/crypt/bcrypt.c index be049baa74..f3ea849f00 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.14 2001/01/04 21:45:30 todd Exp $ */ | 1 | /* $OpenBSD: bcrypt.c,v 1.15 2002/02/16 21:27:21 millert 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> |
@@ -66,11 +66,11 @@ | |||
66 | #define BCRYPT_BLOCKS 6 /* Ciphertext blocks */ | 66 | #define BCRYPT_BLOCKS 6 /* Ciphertext blocks */ |
67 | #define BCRYPT_MINROUNDS 16 /* we have log2(rounds) in salt */ | 67 | #define BCRYPT_MINROUNDS 16 /* we have log2(rounds) in salt */ |
68 | 68 | ||
69 | char *bcrypt_gensalt __P((u_int8_t)); | 69 | char *bcrypt_gensalt(u_int8_t); |
70 | 70 | ||
71 | static void encode_salt __P((char *, u_int8_t *, u_int16_t, u_int8_t)); | 71 | static void encode_salt(char *, u_int8_t *, u_int16_t, u_int8_t); |
72 | static void encode_base64 __P((u_int8_t *, u_int8_t *, u_int16_t)); | 72 | static void encode_base64(u_int8_t *, u_int8_t *, u_int16_t); |
73 | static void decode_base64 __P((u_int8_t *, u_int16_t, u_int8_t *)); | 73 | static void decode_base64(u_int8_t *, u_int16_t, u_int8_t *); |
74 | 74 | ||
75 | static char encrypted[_PASSWORD_LEN]; | 75 | static char encrypted[_PASSWORD_LEN]; |
76 | static char gsalt[BCRYPT_MAXSALT * 4 / 3 + 1]; | 76 | static char gsalt[BCRYPT_MAXSALT * 4 / 3 + 1]; |