Deleted Added
full compact
chap.c (63484) chap.c (64465)
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 * $FreeBSD: head/usr.sbin/ppp/chap.c 63484 2000-07-19 02:10:35Z brian $
20 * $FreeBSD: head/usr.sbin/ppp/chap.c 64465 2000-08-09 19:29:50Z brian $
21 *
22 * TODO:
23 */
24#include <sys/param.h>
25#include <netinet/in.h>
26#include <netinet/in_systm.h>
27#include <netinet/ip.h>
28#include <sys/un.h>

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

677 else
678 log_Printf(LogPHASE, "Chap Input: %s\n",
679 chapcodes[chap->auth.in.hdr.code]);
680 break;
681 }
682
683 switch (chap->auth.in.hdr.code) {
684 case CHAP_CHALLENGE:
21 *
22 * TODO:
23 */
24#include <sys/param.h>
25#include <netinet/in.h>
26#include <netinet/in_systm.h>
27#include <netinet/ip.h>
28#include <sys/un.h>

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

677 else
678 log_Printf(LogPHASE, "Chap Input: %s\n",
679 chapcodes[chap->auth.in.hdr.code]);
680 break;
681 }
682
683 switch (chap->auth.in.hdr.code) {
684 case CHAP_CHALLENGE:
685 if (*bundle->cfg.auth.key == '!')
685 if (*bundle->cfg.auth.key == '!' && bundle->cfg.auth.key[1] != '!')
686 chap_StartChild(chap, bundle->cfg.auth.key + 1,
687 bundle->cfg.auth.name);
688 else
686 chap_StartChild(chap, bundle->cfg.auth.key + 1,
687 bundle->cfg.auth.name);
688 else
689 chap_Respond(chap, bundle->cfg.auth.name,
690 bundle->cfg.auth.key, p->link.lcp.his_authtype
689 chap_Respond(chap, bundle->cfg.auth.name, bundle->cfg.auth.key +
690 (*bundle->cfg.auth.key == '!' ? 1 : 0),
691 p->link.lcp.his_authtype
691#ifdef HAVE_DES
692 , lanman
693#endif
694 );
695 break;
696
697 case CHAP_RESPONSE:
698 name = chap->auth.in.name;

--- 85 unchanged lines hidden ---
692#ifdef HAVE_DES
693 , lanman
694#endif
695 );
696 break;
697
698 case CHAP_RESPONSE:
699 name = chap->auth.in.name;

--- 85 unchanged lines hidden ---