pap.c (15738) | pap.c (18752) |
---|---|
1/* 2 * PPP PAP Module 3 * 4 * Written by Toshiharu OHNO (tony-o@iij.ad.jp) 5 * 6 * Copyright (C) 1993-94, Internet Initiative Japan, Inc. 7 * All rights reserverd. 8 * --- 4 unchanged lines hidden (view full) --- 13 * distribution and use acknowledge that the software was developed 14 * by the Internet Initiative Japan, Inc. The name of the 15 * IIJ may not be used to endorse or promote products derived 16 * from this software without specific prior written permission. 17 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 18 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 19 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 20 * | 1/* 2 * PPP PAP Module 3 * 4 * Written by Toshiharu OHNO (tony-o@iij.ad.jp) 5 * 6 * Copyright (C) 1993-94, Internet Initiative Japan, Inc. 7 * All rights reserverd. 8 * --- 4 unchanged lines hidden (view full) --- 13 * distribution and use acknowledge that the software was developed 14 * by the Internet Initiative Japan, Inc. The name of the 15 * IIJ may not be used to endorse or promote products derived 16 * from this software without specific prior written permission. 17 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 18 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 19 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 20 * |
21 * $Id: pap.c,v 1.4 1996/01/30 11:08:45 dfr Exp $ | 21 * $Id: pap.c,v 1.5 1996/05/11 20:48:38 phk Exp $ |
22 * 23 * TODO: 24 */ 25#include "fsm.h" 26#include "lcp.h" 27#include "pap.h" 28#include "vars.h" 29#include "hdlc.h" --- 76 unchanged lines hidden (view full) --- 106 107 nlen = *name++; 108 klen = *key; 109 *key++ = 0; 110 key[klen] = 0; 111#ifdef DEBUG 112 logprintf("name: %s (%d), key: %s (%d)\n", name, nlen, key, klen); 113#endif | 22 * 23 * TODO: 24 */ 25#include "fsm.h" 26#include "lcp.h" 27#include "pap.h" 28#include "vars.h" 29#include "hdlc.h" --- 76 unchanged lines hidden (view full) --- 106 107 nlen = *name++; 108 klen = *key; 109 *key++ = 0; 110 key[klen] = 0; 111#ifdef DEBUG 112 logprintf("name: %s (%d), key: %s (%d)\n", name, nlen, key, klen); 113#endif |
114 115#ifdef PASSWDAUTH 116 if( Enabled( ConfPasswdAuth ) ) 117 { 118 LogPrintf( LOG_LCP, "PasswdAuth enabled - calling\n" ); 119 return PasswdAuth( name, key ); 120 } 121#endif /* PASSWDAUTH */ 122 |
|
114 return(AuthValidate(SECRETFILE, name, key)); 115} 116 117void 118PapInput(bp) 119struct mbuf *bp; 120{ 121 int len = plength(bp); --- 49 unchanged lines hidden --- | 123 return(AuthValidate(SECRETFILE, name, key)); 124} 125 126void 127PapInput(bp) 128struct mbuf *bp; 129{ 130 int len = plength(bp); --- 49 unchanged lines hidden --- |