xref: /openbsd/usr.bin/telnet/telnet_locl.h (revision 133306f0)
1 /*	$OpenBSD: telnet_locl.h,v 1.2 1999/12/11 09:08:09 itojun Exp $	*/
2 /* $KTH: telnet_locl.h,v 1.13 1997/11/03 21:37:55 assar Exp $ */
3 
4 /*
5  * Copyright (c) 1995, 1996, 1997 Kungliga Tekniska H�gskolan
6  * (Royal Institute of Technology, Stockholm, Sweden).
7  * All rights reserved.
8  *
9  * Redistribution and use in source and binary forms, with or without
10  * modification, are permitted provided that the following conditions
11  * are met:
12  *
13  * 1. Redistributions of source code must retain the above copyright
14  *    notice, this list of conditions and the following disclaimer.
15  *
16  * 2. Redistributions in binary form must reproduce the above copyright
17  *    notice, this list of conditions and the following disclaimer in the
18  *    documentation and/or other materials provided with the distribution.
19  *
20  * 3. All advertising materials mentioning features or use of this software
21  *    must display the following acknowledgement:
22  *      This product includes software developed by the Kungliga Tekniska
23  *      H�gskolan and its contributors.
24  *
25  * 4. Neither the name of the Institute nor the names of its contributors
26  *    may be used to endorse or promote products derived from this software
27  *    without specific prior written permission.
28  *
29  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
30  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
31  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
32  * ARE DISCLAIMED.  IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
33  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
34  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
35  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
36  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
37  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
38  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
39  * SUCH DAMAGE.
40  */
41 
42 
43 #include <stdio.h>
44 #include <stdlib.h>
45 #include <stdarg.h>
46 #include <string.h>
47 #include <ctype.h>
48 #include <signal.h>
49 #include <errno.h>
50 #include <setjmp.h>
51 #include <sys/types.h>
52 #include <unistd.h>
53 
54 /* termios.h *must* be included before curses.h */
55 #include <termios.h>
56 #include <fcntl.h>
57 #include <netdb.h>
58 #include <pwd.h>
59 #include <sys/select.h>
60 #include <sys/time.h>
61 #include <time.h>
62 #include <sys/param.h>
63 #include <sys/ioctl.h>
64 #include <sys/resource.h>
65 #include <sys/wait.h>
66 #include <sys/file.h>
67 #include <sys/socket.h>
68 #include <netinet/in.h>
69 #include <netinet/in_systm.h>
70 #include <netinet/ip.h>
71 #include <arpa/inet.h>
72 
73 #include <arpa/telnet.h>
74 
75 #if	defined(AUTHENTICATION) || defined(ENCRYPTION)
76 #include <libtelnet/auth.h>
77 #include <libtelnet/encrypt.h>
78 #endif
79 #include <libtelnet/misc.h>
80 #include <libtelnet/misc-proto.h>
81 
82 #define LINEMODE
83 
84 #include "ring.h"
85 #include "externs.h"
86 #include "defines.h"
87 #include "types.h"
88 
89 /* prototypes */
90 
91