auth.c (78189) | auth.c (81634) |
---|---|
1/*- 2 * Copyright (c) 1996 - 2001 Brian Somers <brian@Awfulhak.org> 3 * based on work by Toshiharu OHNO <tony-o@iij.ad.jp> 4 * Internet Initiative Japan, Inc (IIJ) 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 11 unchanged lines hidden (view full) --- 20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * | 1/*- 2 * Copyright (c) 1996 - 2001 Brian Somers <brian@Awfulhak.org> 3 * based on work by Toshiharu OHNO <tony-o@iij.ad.jp> 4 * Internet Initiative Japan, Inc (IIJ) 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 11 unchanged lines hidden (view full) --- 20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * |
28 * $FreeBSD: head/usr.sbin/ppp/auth.c 78189 2001-06-13 21:52:19Z brian $ | 28 * $FreeBSD: head/usr.sbin/ppp/auth.c 81634 2001-08-14 16:05:52Z brian $ |
29 */ 30 31#include <sys/param.h> 32#include <netinet/in.h> 33#include <netinet/in_systm.h> 34#include <netinet/ip.h> | 29 */ 30 31#include <sys/param.h> 32#include <netinet/in.h> 33#include <netinet/in_systm.h> 34#include <netinet/ip.h> |
35#include <sys/socket.h> |
|
35#include <sys/un.h> 36 37#include <pwd.h> 38#include <stdio.h> 39#include <string.h> 40#include <termios.h> 41#include <unistd.h> 42 43#include "layer.h" 44#include "mbuf.h" 45#include "defs.h" 46#include "log.h" 47#include "timer.h" 48#include "fsm.h" 49#include "iplist.h" 50#include "throughput.h" 51#include "slcompress.h" 52#include "lqr.h" 53#include "hdlc.h" | 36#include <sys/un.h> 37 38#include <pwd.h> 39#include <stdio.h> 40#include <string.h> 41#include <termios.h> 42#include <unistd.h> 43 44#include "layer.h" 45#include "mbuf.h" 46#include "defs.h" 47#include "log.h" 48#include "timer.h" 49#include "fsm.h" 50#include "iplist.h" 51#include "throughput.h" 52#include "slcompress.h" 53#include "lqr.h" 54#include "hdlc.h" |
55#include "ncpaddr.h" 56#include "ip.h" |
|
54#include "ipcp.h" 55#include "auth.h" 56#include "systems.h" 57#include "lcp.h" 58#include "ccp.h" 59#include "link.h" 60#include "descriptor.h" 61#include "chat.h" 62#include "proto.h" 63#include "filter.h" 64#include "mp.h" 65#ifndef NORADIUS 66#include "radius.h" 67#endif 68#include "cbcp.h" 69#include "chap.h" 70#include "async.h" 71#include "physical.h" 72#include "datalink.h" | 57#include "ipcp.h" 58#include "auth.h" 59#include "systems.h" 60#include "lcp.h" 61#include "ccp.h" 62#include "link.h" 63#include "descriptor.h" 64#include "chat.h" 65#include "proto.h" 66#include "filter.h" 67#include "mp.h" 68#ifndef NORADIUS 69#include "radius.h" 70#endif 71#include "cbcp.h" 72#include "chap.h" 73#include "async.h" 74#include "physical.h" 75#include "datalink.h" |
76#include "ipv6cp.h" 77#include "ncp.h" |
|
73#include "bundle.h" 74 75const char * 76Auth2Nam(u_short auth, u_char type) 77{ 78 static char chap[10]; 79 80 switch (auth) { --- 307 unchanged lines hidden --- | 78#include "bundle.h" 79 80const char * 81Auth2Nam(u_short auth, u_char type) 82{ 83 static char chap[10]; 84 85 switch (auth) { --- 307 unchanged lines hidden --- |