From 3d69dc583455474b1fe3ebfa255c30983a77b0ec Mon Sep 17 00:00:00 2001 From: brian 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/auth.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'usr.sbin/ppp/auth.c') diff --git a/usr.sbin/ppp/auth.c b/usr.sbin/ppp/auth.c index ea1a07d..1d75491 100644 --- a/usr.sbin/ppp/auth.c +++ b/usr.sbin/ppp/auth.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: auth.c,v 1.37 1999/02/02 09:35:17 brian Exp $ + * $Id: auth.c,v 1.38 1999/02/06 02:54:43 brian Exp $ * * TODO: * o Implement check against with registered IP addresses. @@ -66,13 +66,16 @@ #include "bundle.h" const char * -Auth2Nam(u_short auth) +Auth2Nam(u_short auth, u_char type) { + static char chap[10]; + switch (auth) { case PROTO_PAP: return "PAP"; case PROTO_CHAP: - return "CHAP"; + snprintf(chap, sizeof chap, "CHAP 0x%02x", type); + return chap; case 0: return "none"; } -- cgit v1.1