diff options
| author | Brian Somers <brian@FreeBSD.org> | 1997-09-23 19:52:14 +0000 |
|---|---|---|
| committer | Brian Somers <brian@FreeBSD.org> | 1997-09-23 19:52:14 +0000 |
| commit | 3f1125194bdf89dccea9f4fd3dbf45f65928d215 (patch) | |
| tree | 581432dbfedb791a09681ca8938f4c5e1b8e5147 | |
| parent | a12f9b749f6205cabae6514912e39a58040fe8c5 (diff) | |
Notes
| -rw-r--r-- | usr.sbin/ppp/lcp.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.sbin/ppp/lcp.c b/usr.sbin/ppp/lcp.c index ca7006ad940b7..31fafca347e0d 100644 --- a/usr.sbin/ppp/lcp.c +++ b/usr.sbin/ppp/lcp.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: lcp.c,v 1.32 1997/09/22 02:51:24 brian Exp $ + * $Id: lcp.c,v 1.33 1997/09/22 23:59:14 brian Exp $ * * TODO: * o Validate magic number received from peer. @@ -291,7 +291,7 @@ LcpSendConfigReq(struct fsm * fp) break; case PROTO_CHAP: PutConfValue(&cp, cftypes, TY_AUTHPROTO, 5, lcp->want_auth); - *cp++ = VarEncMD4 ? 0x80 : 0x05; /* Use MD4/MD5 */ + *cp++ = 5; /* Use MD4/MD5 */ break; } FsmOutput(fp, CODE_CONFIGREQ, fp->reqid++, ReqBuff, cp - ReqBuff); @@ -510,11 +510,10 @@ LcpDecodeConfig(u_char * cp, int plen, int mode) LogPrintf(LogLCP, " %s bad length (%d)\n", request, length); goto reqreject; } - if (Acceptable(ConfChap) && (cp[4] == 5 || cp[4] == 0x80)) { + if (Acceptable(ConfChap) && cp[4] == 5) { LcpInfo.his_auth = proto; bcopy(cp, ackp, length); ackp += length; - VarEncMD4 = cp[4] == 0x80; } else if (Acceptable(ConfPap)) { *nakp++ = *cp; *nakp++ = 4; |
