Deleted Added
full compact
auth.c (32267) auth.c (32663)
1/*
2 * PPP Secret Key Module
3 *
4 * Written by Toshiharu OHNO (tony-o@iij.ad.jp)
5 *
6 * Copyright (C) 1994, Internet Initiative Japan, Inc. All rights reserverd.
7 *
8 * Redistribution and use in source and binary forms are permitted
9 * provided that the above copyright notice and this paragraph are
10 * duplicated in all such forms and that any documentation,
11 * advertising materials, and other materials related to such
12 * distribution and use acknowledge that the software was developed
13 * by the Internet Initiative Japan, Inc. The name of the
14 * IIJ may not be used to endorse or promote products derived
15 * from this software without specific prior written permission.
16 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
17 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
18 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
19 *
1/*
2 * PPP Secret Key Module
3 *
4 * Written by Toshiharu OHNO (tony-o@iij.ad.jp)
5 *
6 * Copyright (C) 1994, Internet Initiative Japan, Inc. All rights reserverd.
7 *
8 * Redistribution and use in source and binary forms are permitted
9 * provided that the above copyright notice and this paragraph are
10 * duplicated in all such forms and that any documentation,
11 * advertising materials, and other materials related to such
12 * distribution and use acknowledge that the software was developed
13 * by the Internet Initiative Japan, Inc. The name of the
14 * IIJ may not be used to endorse or promote products derived
15 * from this software without specific prior written permission.
16 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
17 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
18 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
19 *
20 * $Id: auth.c,v 1.25 1997/12/24 09:28:50 brian Exp $
20 * $Id: auth.c,v 1.26 1998/01/05 01:35:17 brian Exp $
21 *
22 * TODO:
23 * o Implement check against with registered IP addresses.
24 */
25#include <sys/param.h>
26#include <netinet/in.h>
27
28#include <stdio.h>
29#include <string.h>
30#include <unistd.h>
31
32#include "command.h"
33#include "mbuf.h"
21 *
22 * TODO:
23 * o Implement check against with registered IP addresses.
24 */
25#include <sys/param.h>
26#include <netinet/in.h>
27
28#include <stdio.h>
29#include <string.h>
30#include <unistd.h>
31
32#include "command.h"
33#include "mbuf.h"
34#include "log.h"
35#include "defs.h"
36#include "timer.h"
37#include "fsm.h"
34#include "defs.h"
35#include "timer.h"
36#include "fsm.h"
38#include "lcpproto.h"
39#include "ipcp.h"
40#include "loadalias.h"
41#include "vars.h"
37#include "ipcp.h"
38#include "loadalias.h"
39#include "vars.h"
42#include "filter.h"
43#include "auth.h"
44#include "chat.h"
45#include "systems.h"
40#include "auth.h"
41#include "chat.h"
42#include "systems.h"
46#include "iplist.h"
47#include "route.h"
48
49void
50LocalAuthInit()
51{
52 if (!(mode&MODE_DAEMON))
53 /* We're allowed in interactive mode */
54 VarLocalAuth = LOCAL_AUTH;
55 else if (VarHaveLocalAuthKey)

--- 162 unchanged lines hidden ---
43
44void
45LocalAuthInit()
46{
47 if (!(mode&MODE_DAEMON))
48 /* We're allowed in interactive mode */
49 VarLocalAuth = LOCAL_AUTH;
50 else if (VarHaveLocalAuthKey)

--- 162 unchanged lines hidden ---