summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/lcp.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1997-09-23 19:52:14 +0000
committerbrian <brian@FreeBSD.org>1997-09-23 19:52:14 +0000
commit8403100dd517b6dd151c5c23b341c846946c5f1b (patch)
treec058c77cab626669a174bb4023daeecc445fa676 /usr.sbin/ppp/lcp.c
parentcbddc1630dda429a163737f3b686df7110a990a5 (diff)
downloadFreeBSD-src-8403100dd517b6dd151c5c23b341c846946c5f1b.zip
FreeBSD-src-8403100dd517b6dd151c5c23b341c846946c5f1b.tar.gz
Undo botched commit (local changes got in)
Diffstat (limited to 'usr.sbin/ppp/lcp.c')
-rw-r--r--usr.sbin/ppp/lcp.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.sbin/ppp/lcp.c b/usr.sbin/ppp/lcp.c
index ca7006a..31fafca 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;
OpenPOWER on IntegriCloud