Deleted Added
full compact
chap.c (36287) chap.c (37192)
1/*
2 * PPP CHAP Module
3 *
4 * Written by Toshiharu OHNO (tony-o@iij.ad.jp)
5 *
6 * Copyright (C) 1993, 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 CHAP Module
3 *
4 * Written by Toshiharu OHNO (tony-o@iij.ad.jp)
5 *
6 * Copyright (C) 1993, 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: chap.c,v 1.31 1998/05/21 21:44:25 brian Exp $
20 * $Id: chap.c,v 1.32 1998/05/21 22:55:02 brian Exp $
21 *
22 * TODO:
23 */
24#include <sys/types.h>
25#include <netinet/in.h>
26#include <netinet/in_systm.h>
27#include <netinet/ip.h>
28#include <sys/un.h>
29
21 *
22 * TODO:
23 */
24#include <sys/types.h>
25#include <netinet/in.h>
26#include <netinet/in_systm.h>
27#include <netinet/ip.h>
28#include <sys/un.h>
29
30#ifdef HAVE_DES
30#include <md4.h>
31#include <md4.h>
32#endif
31#include <md5.h>
32#include <stdlib.h>
33#include <md5.h>
34#include <stdlib.h>
33#include <string.h>
34#include <termios.h>
35
36#include "mbuf.h"
37#include "log.h"
38#include "defs.h"
39#include "timer.h"
40#include "fsm.h"
41#include "lcpproto.h"

--- 11 unchanged lines hidden (view full) ---

53#include "filter.h"
54#include "ccp.h"
55#include "link.h"
56#include "physical.h"
57#include "mp.h"
58#include "bundle.h"
59#include "chat.h"
60#include "datalink.h"
35#include <termios.h>
36
37#include "mbuf.h"
38#include "log.h"
39#include "defs.h"
40#include "timer.h"
41#include "fsm.h"
42#include "lcpproto.h"

--- 11 unchanged lines hidden (view full) ---

54#include "filter.h"
55#include "ccp.h"
56#include "link.h"
57#include "physical.h"
58#include "mp.h"
59#include "bundle.h"
60#include "chat.h"
61#include "datalink.h"
62#ifdef HAVE_DES
61#include "chap_ms.h"
63#include "chap_ms.h"
64#endif
62
63static const char *chapcodes[] = {
64 "???", "CHALLENGE", "RESPONSE", "SUCCESS", "FAILURE"
65};
66
67static void
68ChapOutput(struct physical *physical, u_int code, u_int id,
69 const u_char * ptr, int count)

--- 240 unchanged lines hidden ---
65
66static const char *chapcodes[] = {
67 "???", "CHALLENGE", "RESPONSE", "SUCCESS", "FAILURE"
68};
69
70static void
71ChapOutput(struct physical *physical, u_int code, u_int id,
72 const u_char * ptr, int count)

--- 240 unchanged lines hidden ---