diff options
author | jkh <jkh@FreeBSD.org> | 1996-10-06 13:32:37 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-10-06 13:32:37 +0000 |
commit | 0126fef03c77e24d10287500630a8937927af05c (patch) | |
tree | ad8d5fd7602ec7777833a137bea28011b2ce01d8 /usr.sbin/ppp/pap.c | |
parent | d4df49b545734e1261c785b09fbba51dfabdd053 (diff) | |
download | FreeBSD-src-0126fef03c77e24d10287500630a8937927af05c.zip FreeBSD-src-0126fef03c77e24d10287500630a8937927af05c.tar.gz |
Add support for the Evil Microsoft ppp extentions. Yes, they did it
on their own without even attempting to get concensus in the IETF, but
there are also lots of Win95/NT boxes out there.
CLoses PR#1494
Submitted-By: Peter Childs <pjchilds@imforei.apana.org.au>
Diffstat (limited to 'usr.sbin/ppp/pap.c')
-rw-r--r-- | usr.sbin/ppp/pap.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/usr.sbin/ppp/pap.c b/usr.sbin/ppp/pap.c index 7e7bdc6..0004d63 100644 --- a/usr.sbin/ppp/pap.c +++ b/usr.sbin/ppp/pap.c @@ -18,7 +18,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: pap.c,v 1.4 1996/01/30 11:08:45 dfr Exp $ + * $Id: pap.c,v 1.5 1996/05/11 20:48:38 phk Exp $ * * TODO: */ @@ -111,6 +111,15 @@ u_char *name, *key; #ifdef DEBUG logprintf("name: %s (%d), key: %s (%d)\n", name, nlen, key, klen); #endif + +#ifdef PASSWDAUTH + if( Enabled( ConfPasswdAuth ) ) + { + LogPrintf( LOG_LCP, "PasswdAuth enabled - calling\n" ); + return PasswdAuth( name, key ); + } +#endif /* PASSWDAUTH */ + return(AuthValidate(SECRETFILE, name, key)); } |