From 2855a033e2ce21435491d8b586902f08274d2b7b Mon Sep 17 00:00:00 2001 From: provos <> Date: Sun, 16 Feb 1997 20:54:28 +0000 Subject: [PATCH] small cleanup --- src/include/blf.h | 14 +++++++------- src/include/pwd.h | 6 +----- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/src/include/blf.h b/src/include/blf.h index b4689da5..54883b66 100644 --- a/src/include/blf.h +++ b/src/include/blf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: blf.h,v 1.2 1997/02/14 18:42:10 provos Exp $ */ +/* $OpenBSD: blf.h,v 1.3 1997/02/16 20:54:26 provos Exp $ */ /* * Blowfish - a fast block cipher designed by Bruce Schneier * @@ -15,7 +15,7 @@ * documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software * must display the following acknowledgement: - * This product includes software developed by Theo de Raadt. + * This product includes software developed by Niels Provos. * 4. The name of the author may not be used to endorse or promote products * derived from this software without specific prior written permission. * @@ -59,17 +59,17 @@ typedef struct BlowfishContext { void Blowfish_encipher __P((blf_ctx *, u_int32_t *, u_int32_t *)); void Blowfish_decipher __P((blf_ctx *, u_int32_t *, u_int32_t *)); void Blowfish_initstate __P((blf_ctx *)); -void Blowfish_expand0state __P((blf_ctx *, u_int8_t *, u_int16_t)); -void Blowfish_expandstate - __P((blf_ctx *, u_int8_t *, u_int16_t, u_int8_t *, u_int16_t)); +void Blowfish_expand0state __P((blf_ctx *, const u_int8_t *, u_int16_t)); +void Blowfish_expandstate + __P((blf_ctx *, const u_int8_t *, u_int16_t, const u_int8_t *, u_int16_t)); /* Standard Blowfish */ -void blf_key __P((blf_ctx *, u_int8_t *, u_int16_t)); +void blf_key __P((blf_ctx *, const u_int8_t *, u_int16_t)); void blf_enc __P((blf_ctx *, u_int32_t *, u_int16_t)); void blf_dec __P((blf_ctx *, u_int32_t *, u_int16_t)); /* Converts u_int8_t to u_int32_t */ -u_int32_t Blowfish_stream2word __P((u_int8_t *, u_int16_t , u_int16_t *)); +u_int32_t Blowfish_stream2word __P((const u_int8_t *, u_int16_t , u_int16_t *)); #endif diff --git a/src/include/pwd.h b/src/include/pwd.h index e94330b1..8e419adc 100644 --- a/src/include/pwd.h +++ b/src/include/pwd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pwd.h,v 1.4 1997/02/14 23:28:47 provos Exp $ */ +/* $OpenBSD: pwd.h,v 1.5 1997/02/16 20:54:28 provos Exp $ */ /* $NetBSD: pwd.h,v 1.9 1996/05/15 21:36:45 jtc Exp $ */ /*- @@ -73,10 +73,6 @@ #define _PASSWORD_NOCHG 0x04 /* flag for no specified change. */ #define _PASSWORD_NOEXP 0x08 /* flag for no specified expire. */ -#define _PASSWORD_OLD 1 /* Old Unix style passwords */ -#define _PASSWORD_NSALT 2 /* Use extended salt + DES */ -#define _PASSWORD_BLF 3 /* Adaptable Blowfish hash */ - #endif struct passwd {