X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fchap.c;h=06c17e8bfdf71daeb31fef91e1f3bdc39a618cfa;hp=189eb20ecc2de6ebbf5a22359c39fd3365e037fe;hb=bd8c9068a51050844e7db5e20df354db1c884f77;hpb=8b667f223a1019915d0df5f35ed425de29c75be1 diff --git a/pppd/chap.c b/pppd/chap.c index 189eb20..06c17e8 100644 --- a/pppd/chap.c +++ b/pppd/chap.c @@ -34,7 +34,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: chap.c,v 1.15 1997/11/27 06:07:48 paulus Exp $"; +static char rcsid[] = "$Id: chap.c,v 1.16 1998/11/07 06:59:26 paulus Exp $"; #endif /* @@ -54,6 +54,23 @@ static char rcsid[] = "$Id: chap.c,v 1.15 1997/11/27 06:07:48 paulus Exp $"; #include "chap_ms.h" #endif +/* + * Command-line options. + */ +static option_t chap_option_list[] = { + { "chap-restart", o_int, &chap[0].timeouttime, + "Set timeout for CHAP" }, + { "chap-max-challenge", o_int, &chap[0].max_transmits, + "Set max #xmits for challenge" }, + { "chap-interval", o_int, &chap[0].chal_interval, + "Set interval for rechallenge" }, +#ifdef MSLANMAN + { "ms-lanman", o_bool, &ms_lanman, + "Use LanMan psswd when using MS-CHAP", 1 }, +#endif + { NULL } +}; + /* * Protocol entry points. */ @@ -78,6 +95,7 @@ struct protent chap_protent = { NULL, 1, "CHAP", + chap_option_list, NULL, NULL, NULL