From: provos Date: Sun, 16 Feb 1997 20:54:26 +0000 (+0000) Subject: small cleanup X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a37f7092ed3f72c820815a6eb693a9471aed325a;p=openbsd small cleanup --- diff --git a/include/blf.h b/include/blf.h index b4689da5c80..54883b66f4f 100644 --- a/include/blf.h +++ b/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/include/pwd.h b/include/pwd.h index e94330b1ee1..8e419adcf10 100644 --- a/include/pwd.h +++ b/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 {