From 5e3154989731d0f43a0fa0b65f7321264570ba3f Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Thu, 18 Feb 1999 00:52:15 +0000 Subject: Fully support both NT and LANMan CHAP type 0x80 as both authenticator and authenticatee. --- usr.sbin/ppp/lcp.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'usr.sbin/ppp/lcp.h') diff --git a/usr.sbin/ppp/lcp.h b/usr.sbin/ppp/lcp.h index 62dce126d978..609a6e5a29d7 100644 --- a/usr.sbin/ppp/lcp.h +++ b/usr.sbin/ppp/lcp.h @@ -15,7 +15,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: lcp.h,v 1.18 1998/06/27 23:48:48 brian Exp $ + * $Id: lcp.h,v 1.19 1998/08/07 18:42:49 brian Exp $ * * TODO: */ @@ -46,6 +46,7 @@ struct lcp { u_int32_t his_magic; /* Peers magic number */ u_int32_t his_lqrperiod; /* Peers LQR frequency (100ths of seconds) */ u_short his_auth; /* Peer wants this type of authentication */ + u_char his_authtype; /* Fifth octet of REQ/NAK/REJ */ struct callback his_callback; /* Peer wants callback ? */ unsigned his_shortseq : 1; /* Peer would like only 12bit seqs (MP) */ unsigned his_protocomp : 1; /* Does peer do Protocol field compression */ @@ -57,6 +58,7 @@ struct lcp { u_int32_t want_magic; /* Our magic number */ u_int32_t want_lqrperiod; /* Our LQR frequency (100ths of seconds) */ u_short want_auth; /* We want this type of authentication */ + u_char want_authtype; /* Fifth octet of REQ/NAK/REJ */ struct callback want_callback;/* We want callback ? */ unsigned want_shortseq : 1; /* I'd like only 12bit seqs (MP) */ unsigned want_protocomp : 1; /* Do we do protocol field compression */ @@ -78,7 +80,11 @@ struct lcp { u_int fsmretry; /* FSM retry frequency */ unsigned acfcomp : 2; /* Address & Control Field Compression neg */ - unsigned chap : 2; /* Challenge Handshake Authentication proto */ + unsigned chap05 : 2; /* Challenge Handshake Authentication proto */ +#ifdef HAVE_DES + unsigned chap80nt : 2; /* Microsoft (NT) CHAP */ + unsigned chap80lm : 2; /* Microsoft (LANMan) CHAP */ +#endif unsigned lqr : 2; /* Link Quality Report */ unsigned pap : 2; /* Password Authentication protocol */ unsigned protocomp : 2; /* Protocol field compression */ @@ -120,7 +126,6 @@ struct lcp_opt { struct mbuf; struct link; -struct physical; struct bundle; struct cmdargs; -- cgit v1.2.3