2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. All rights reserved.
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 * 3. All advertising materials mentioning features or use of this software
14 * must display the following acknowledgement:
15 * This product includes software developed by the University of
16 * California, Berkeley and its contributors.
17 * 4. Neither the name of the University nor the names of its contributors
18 * may be used to endorse or promote products derived from this software
19 * without specific prior written permission.
21 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 * @(#)telnetd.h 8.1 (Berkeley) 6/4/93
35 /* $FreeBSD: src/crypto/kerberosIV/appl/telnet/telnetd/telnetd.h,v 1.2.2.2 2003/02/13 21:34:35 nectar Exp $ */
45 #ifdef HAVE_SYS_TYPES_H
46 #include <sys/types.h>
48 #ifdef HAVE_SYS_PARAM_H
49 #include <sys/param.h>
52 #ifdef HAVE_SYS_SOCKET_H
53 #include <sys/socket.h>
55 #ifdef TIME_WITH_SYS_TIME
58 #elif defined(HAVE_SYS_TIME_H)
64 #ifdef HAVE_SYS_RESOURCE_H
65 #include <sys/resource.h>
66 #endif /* HAVE_SYS_RESOURCE_H */
68 #ifdef HAVE_SYS_WAIT_H
75 #ifdef HAVE_SYS_FILE_H
78 #ifdef HAVE_SYS_STAT_H
82 /* including both <sys/ioctl.h> and <termios.h> in SunOS 4 generates a
85 #if defined(HAVE_SYS_IOCTL_H) && SunOS != 40
86 #include <sys/ioctl.h>
88 #ifdef HAVE_SYS_FILIO_H
89 #include <sys/filio.h>
92 #ifdef HAVE_NETINET_IN_H
93 #include <netinet/in.h>
95 #ifdef HAVE_NETINET_IN6_H
96 #include <netinet/in6.h>
98 #ifdef HAVE_NETINET6_IN6_H
99 #include <netinet6/in6.h>
102 #ifdef HAVE_ARPA_INET_H
103 #include <arpa/inet.h>
128 #ifndef _POSIX_VDISABLE
130 # define _POSIX_VDISABLE VDISABLE
132 # define _POSIX_VDISABLE ((unsigned char)'\377')
137 #ifdef HAVE_SYS_PTY_H
140 #ifdef HAVE_SYS_SELECT_H
141 #include <sys/select.h>
144 #ifdef HAVE_SYS_PTYIO_H
145 #include <sys/ptyio.h>
148 #ifdef HAVE_SYS_UTSNAME_H
149 #include <sys/utsname.h>
156 #ifdef HAVE_ARPA_TELNET_H
157 #include <arpa/telnet.h>
164 /* This doesn't belong here. */
165 struct tm *localtime(const time_t *);
166 struct hostent *gethostbyname(const char *);
170 #define OPENSSL_DES_LIBDES_COMPATIBILITY
171 #include <openssl/des.h>
175 #ifdef AUTHENTICATION
176 #include <libtelnet/auth.h>
177 #include <libtelnet/misc.h>
179 #include <libtelnet/encrypt.h>
183 #ifdef HAVE_LIBUTIL_H
189 /* Don't use the system login, use our version instead */
191 /* BINDIR should be defined somewhere else... */
194 #define BINDIR "/usr/athena/bin"
198 #define _PATH_LOGIN BINDIR "/login"
203 #define _PATH_DEV "/dev/"
207 #define _PATH_TTY "/dev/tty"
208 #endif /* _PATH_TTY */
211 #define DIAG(a,b) if (diagnostic & (a)) b
216 /* other external variables */
217 extern char **environ;
221 /* appends data to nfrontp and advances */
222 int output_data (const char *format, ...)
224 __attribute__ ((format (printf, 1, 2)))