summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/pap.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-10-06 13:32:37 +0000
committerjkh <jkh@FreeBSD.org>1996-10-06 13:32:37 +0000
commit0126fef03c77e24d10287500630a8937927af05c (patch)
treead8d5fd7602ec7777833a137bea28011b2ce01d8 /usr.sbin/ppp/pap.c
parentd4df49b545734e1261c785b09fbba51dfabdd053 (diff)
downloadFreeBSD-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.c11
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));
}
OpenPOWER on IntegriCloud