X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fchap.c;h=99b11758bf5989b64a1afa6bb2d0e95e83530ec9;hp=d72c36d4a9896e964e97ddd13c6e8a72e0b3baad;hb=28ede1851583cbdcbee685e0f2d0dfc55b9dc4b4;hpb=68497c7d9717fc53f7864d6555be1e0b5e15e696 diff --git a/pppd/chap.c b/pppd/chap.c index d72c36d..99b1175 100644 --- a/pppd/chap.c +++ b/pppd/chap.c @@ -19,7 +19,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: chap.c,v 1.8 1995/07/04 12:32:26 paulus Exp $"; +static char rcsid[] = "$Id: chap.c,v 1.11 1996/04/04 03:35:58 paulus Exp $"; #endif /* @@ -36,6 +36,12 @@ static char rcsid[] = "$Id: chap.c,v 1.8 1995/07/04 12:32:26 paulus Exp $"; #include "chap.h" #include "md5.h" +struct protent chap_protent = { + PPP_CHAP, ChapInit, ChapInput, ChapProtocolReject, + ChapLowerUp, ChapLowerDown, NULL, NULL, + ChapPrintPkt, NULL, 1, "CHAP", NULL, NULL +}; + chap_state chap[NUM_PPP]; /* CHAP state; one for each unit */ static void ChapChallengeTimeout __P((caddr_t)); @@ -424,9 +430,7 @@ ChapReceiveResponse(cstate, inp, id, len) int secret_len, old_state; int code; char rhostname[256]; - u_char buf[256]; MD5_CTX mdContext; - u_char msg[256]; char secret[MAXSECRETLEN]; CHAPDEBUG((LOG_INFO, "ChapReceiveResponse: Rcvd id %d.", id)); @@ -578,9 +582,6 @@ ChapReceiveFailure(cstate, inp, id, len) u_char id; int len; { - u_char msglen; - u_char *msg; - CHAPDEBUG((LOG_INFO, "ChapReceiveFailure: Rcvd id %d.", id)); if (cstate->clientstate != CHAPCS_RESPONSE) {