X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fchap.h;h=44b08f2e205f07f6a23aefa011fc4b55fbb729c9;hp=e91d4fb524a064985f6fc0840fc4bb386b23359f;hb=dee72905271845128ad26cff5cf770c433f3f4a7;hpb=0b63a24d54ba4708c88e31bdd74b0145956c1478 diff --git a/pppd/chap.h b/pppd/chap.h index e91d4fb..44b08f2 100644 --- a/pppd/chap.h +++ b/pppd/chap.h @@ -1,6 +1,5 @@ /* * chap.h - Cryptographic Handshake Authentication Protocol definitions. - * based on November 1991 draft of PPP Authentication RFC * * Copyright (c) 1991 Gregory M. Christy * All rights reserved. @@ -16,13 +15,13 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: chap.h,v 1.1 1993/11/11 03:54:25 paulus Exp $ + * $Id: chap.h,v 1.3 1994/09/21 06:47:37 paulus Exp $ */ #ifndef __CHAP_INCLUDE__ /* Code + ID + length */ -#define CHAP_HEADERLEN (sizeof (u_char) + sizeof (u_char) + sizeof (u_short)) +#define CHAP_HEADERLEN 4 /* * CHAP codes. @@ -99,13 +98,15 @@ typedef struct chap_state { extern chap_state chap[]; -void ChapInit __ARGS((int)); -void ChapAuthWithPeer __ARGS((int, char *, int)); -void ChapAuthPeer __ARGS((int, char *, int)); -void ChapLowerUp __ARGS((int)); -void ChapLowerDown __ARGS((int)); -void ChapInput __ARGS((int, u_char *, int)); -void ChapProtocolReject __ARGS((int)); +void ChapInit __P((int)); +void ChapAuthWithPeer __P((int, char *, int)); +void ChapAuthPeer __P((int, char *, int)); +void ChapLowerUp __P((int)); +void ChapLowerDown __P((int)); +void ChapInput __P((int, u_char *, int)); +void ChapProtocolReject __P((int)); +int ChapPrintPkt __P((u_char *, int, + void (*) __P((void *, char *, ...)), void *)); #define __CHAP_INCLUDE__ #endif /* __CHAP_INCLUDE__ */