1*0Sstevel@tonic-gate /* $OpenBSD: includes.h,v 1.17 2002/01/26 16:44:22 stevesk Exp $ */ 2*0Sstevel@tonic-gate 3*0Sstevel@tonic-gate #ifndef _INCLUDES_H 4*0Sstevel@tonic-gate #define _INCLUDES_H 5*0Sstevel@tonic-gate 6*0Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" 7*0Sstevel@tonic-gate 8*0Sstevel@tonic-gate #ifdef __cplusplus 9*0Sstevel@tonic-gate extern "C" { 10*0Sstevel@tonic-gate #endif 11*0Sstevel@tonic-gate 12*0Sstevel@tonic-gate 13*0Sstevel@tonic-gate /* 14*0Sstevel@tonic-gate * Author: Tatu Ylonen <ylo@cs.hut.fi> 15*0Sstevel@tonic-gate * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 16*0Sstevel@tonic-gate * All rights reserved 17*0Sstevel@tonic-gate * This file includes most of the needed system headers. 18*0Sstevel@tonic-gate * 19*0Sstevel@tonic-gate * As far as I am concerned, the code I have written for this software 20*0Sstevel@tonic-gate * can be used freely for any purpose. Any derived versions of this 21*0Sstevel@tonic-gate * software must be clearly marked as such, and if the derived work is 22*0Sstevel@tonic-gate * incompatible with the protocol description in the RFC file, it must be 23*0Sstevel@tonic-gate * called by a name other than "ssh" or "Secure Shell". 24*0Sstevel@tonic-gate */ 25*0Sstevel@tonic-gate 26*0Sstevel@tonic-gate #define RCSID(msg) \ 27*0Sstevel@tonic-gate static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg } 28*0Sstevel@tonic-gate 29*0Sstevel@tonic-gate #include "config.h" 30*0Sstevel@tonic-gate 31*0Sstevel@tonic-gate #include <stdio.h> 32*0Sstevel@tonic-gate #include <ctype.h> 33*0Sstevel@tonic-gate #include <errno.h> 34*0Sstevel@tonic-gate #include <fcntl.h> /* For O_NONBLOCK */ 35*0Sstevel@tonic-gate #include <signal.h> 36*0Sstevel@tonic-gate #include <stdlib.h> 37*0Sstevel@tonic-gate #include <string.h> 38*0Sstevel@tonic-gate #include <stdarg.h> 39*0Sstevel@tonic-gate #include <pwd.h> 40*0Sstevel@tonic-gate #include <grp.h> 41*0Sstevel@tonic-gate #include <time.h> 42*0Sstevel@tonic-gate #include <dirent.h> 43*0Sstevel@tonic-gate #include <libintl.h> 44*0Sstevel@tonic-gate #include <locale.h> 45*0Sstevel@tonic-gate 46*0Sstevel@tonic-gate #ifdef HAVE_LIMITS_H 47*0Sstevel@tonic-gate # include <limits.h> /* For PATH_MAX */ 48*0Sstevel@tonic-gate #endif 49*0Sstevel@tonic-gate #ifdef HAVE_GETOPT_H 50*0Sstevel@tonic-gate # include <getopt.h> 51*0Sstevel@tonic-gate #endif 52*0Sstevel@tonic-gate #ifdef HAVE_BSTRING_H 53*0Sstevel@tonic-gate # include <bstring.h> 54*0Sstevel@tonic-gate #endif 55*0Sstevel@tonic-gate #if defined(HAVE_GLOB_H) && defined(GLOB_HAS_ALTDIRFUNC) && \ 56*0Sstevel@tonic-gate defined(GLOB_HAS_GL_MATCHC) 57*0Sstevel@tonic-gate # include <glob.h> 58*0Sstevel@tonic-gate #endif 59*0Sstevel@tonic-gate #ifdef HAVE_NETGROUP_H 60*0Sstevel@tonic-gate # include <netgroup.h> 61*0Sstevel@tonic-gate #endif 62*0Sstevel@tonic-gate #if defined(HAVE_NETDB_H) 63*0Sstevel@tonic-gate # include <netdb.h> 64*0Sstevel@tonic-gate #endif 65*0Sstevel@tonic-gate #ifdef HAVE_ENDIAN_H 66*0Sstevel@tonic-gate # include <endian.h> 67*0Sstevel@tonic-gate #endif 68*0Sstevel@tonic-gate #ifdef HAVE_TTYENT_H 69*0Sstevel@tonic-gate # include <ttyent.h> 70*0Sstevel@tonic-gate #endif 71*0Sstevel@tonic-gate #ifdef HAVE_UTIME_H 72*0Sstevel@tonic-gate # include <utime.h> 73*0Sstevel@tonic-gate #endif 74*0Sstevel@tonic-gate #ifdef HAVE_MAILLOCK_H 75*0Sstevel@tonic-gate # include <maillock.h> /* For _PATH_MAILDIR */ 76*0Sstevel@tonic-gate #endif 77*0Sstevel@tonic-gate #ifdef HAVE_NEXT 78*0Sstevel@tonic-gate # include <libc.h> 79*0Sstevel@tonic-gate #endif 80*0Sstevel@tonic-gate #include <unistd.h> /* For STDIN_FILENO, etc */ 81*0Sstevel@tonic-gate #include <termios.h> /* Struct winsize */ 82*0Sstevel@tonic-gate 83*0Sstevel@tonic-gate /* 84*0Sstevel@tonic-gate *-*-nto-qnx needs these headers for strcasecmp and LASTLOG_FILE respectively 85*0Sstevel@tonic-gate */ 86*0Sstevel@tonic-gate #ifdef HAVE_STRINGS_H 87*0Sstevel@tonic-gate # include <strings.h> 88*0Sstevel@tonic-gate #endif 89*0Sstevel@tonic-gate #ifdef HAVE_LOGIN_H 90*0Sstevel@tonic-gate # include <login.h> 91*0Sstevel@tonic-gate #endif 92*0Sstevel@tonic-gate 93*0Sstevel@tonic-gate #ifdef HAVE_UTMP_H 94*0Sstevel@tonic-gate # include <utmp.h> 95*0Sstevel@tonic-gate #endif 96*0Sstevel@tonic-gate #ifdef HAVE_UTMPX_H 97*0Sstevel@tonic-gate # ifdef HAVE_TV_IN_UTMPX 98*0Sstevel@tonic-gate # include <sys/time.h> 99*0Sstevel@tonic-gate # endif 100*0Sstevel@tonic-gate # include <utmpx.h> 101*0Sstevel@tonic-gate #endif 102*0Sstevel@tonic-gate #ifdef HAVE_LASTLOG_H 103*0Sstevel@tonic-gate # include <lastlog.h> 104*0Sstevel@tonic-gate #endif 105*0Sstevel@tonic-gate #ifdef HAVE_PATHS_H 106*0Sstevel@tonic-gate # include <paths.h> /* For _PATH_XXX */ 107*0Sstevel@tonic-gate #endif 108*0Sstevel@tonic-gate 109*0Sstevel@tonic-gate #include <sys/types.h> 110*0Sstevel@tonic-gate #include <sys/socket.h> 111*0Sstevel@tonic-gate #include <sys/ioctl.h> 112*0Sstevel@tonic-gate #include <sys/wait.h> 113*0Sstevel@tonic-gate #ifdef HAVE_SYS_TIME_H 114*0Sstevel@tonic-gate # include <sys/time.h> /* For timersub */ 115*0Sstevel@tonic-gate #endif 116*0Sstevel@tonic-gate #include <sys/resource.h> 117*0Sstevel@tonic-gate #ifdef HAVE_SYS_SELECT_H 118*0Sstevel@tonic-gate # include <sys/select.h> 119*0Sstevel@tonic-gate #endif 120*0Sstevel@tonic-gate #ifdef HAVE_SYS_BSDTTY_H 121*0Sstevel@tonic-gate # include <sys/bsdtty.h> 122*0Sstevel@tonic-gate #endif 123*0Sstevel@tonic-gate #include <sys/param.h> /* For MAXPATHLEN and roundup() */ 124*0Sstevel@tonic-gate #ifdef HAVE_SYS_UN_H 125*0Sstevel@tonic-gate # include <sys/un.h> /* For sockaddr_un */ 126*0Sstevel@tonic-gate #endif 127*0Sstevel@tonic-gate #ifdef HAVE_STDINT_H 128*0Sstevel@tonic-gate # include <stdint.h> 129*0Sstevel@tonic-gate #endif 130*0Sstevel@tonic-gate #ifdef HAVE_SYS_BITYPES_H 131*0Sstevel@tonic-gate # include <sys/bitypes.h> /* For u_intXX_t */ 132*0Sstevel@tonic-gate #endif 133*0Sstevel@tonic-gate #ifdef HAVE_SYS_CDEFS_H 134*0Sstevel@tonic-gate # include <sys/cdefs.h> /* For __P() */ 135*0Sstevel@tonic-gate #endif 136*0Sstevel@tonic-gate #ifdef HAVE_SYS_STAT_H 137*0Sstevel@tonic-gate # include <sys/stat.h> /* For S_* constants and macros */ 138*0Sstevel@tonic-gate #endif 139*0Sstevel@tonic-gate #ifdef HAVE_SYS_SYSMACROS_H 140*0Sstevel@tonic-gate # include <sys/sysmacros.h> /* For MIN, MAX, etc */ 141*0Sstevel@tonic-gate #endif 142*0Sstevel@tonic-gate #ifdef HAVE_SYS_MMAN_H 143*0Sstevel@tonic-gate #include <sys/mman.h> /* for MAP_ANONYMOUS */ 144*0Sstevel@tonic-gate #endif 145*0Sstevel@tonic-gate 146*0Sstevel@tonic-gate #include <netinet/in_systm.h> /* For typedefs */ 147*0Sstevel@tonic-gate #include <netinet/in.h> /* For IPv6 macros */ 148*0Sstevel@tonic-gate #include <netinet/ip.h> /* For IPTOS macros */ 149*0Sstevel@tonic-gate #include <netinet/tcp.h> 150*0Sstevel@tonic-gate #include <arpa/inet.h> 151*0Sstevel@tonic-gate #ifdef HAVE_RPC_TYPES_H 152*0Sstevel@tonic-gate # include <rpc/types.h> /* For INADDR_LOOPBACK */ 153*0Sstevel@tonic-gate #endif 154*0Sstevel@tonic-gate #ifdef USE_PAM 155*0Sstevel@tonic-gate # include <security/pam_appl.h> 156*0Sstevel@tonic-gate #endif 157*0Sstevel@tonic-gate #ifdef HAVE_READPASSPHRASE_H 158*0Sstevel@tonic-gate # include <readpassphrase.h> 159*0Sstevel@tonic-gate #endif 160*0Sstevel@tonic-gate 161*0Sstevel@tonic-gate #ifdef HAVE_IA_H 162*0Sstevel@tonic-gate # include <ia.h> 163*0Sstevel@tonic-gate #endif 164*0Sstevel@tonic-gate 165*0Sstevel@tonic-gate #ifdef HAVE_TMPDIR_H 166*0Sstevel@tonic-gate # include <tmpdir.h> 167*0Sstevel@tonic-gate #endif 168*0Sstevel@tonic-gate 169*0Sstevel@tonic-gate #include <openssl/opensslv.h> /* For OPENSSL_VERSION_NUMBER */ 170*0Sstevel@tonic-gate 171*0Sstevel@tonic-gate #include "defines.h" 172*0Sstevel@tonic-gate 173*0Sstevel@tonic-gate #include "version.h" 174*0Sstevel@tonic-gate #include "openbsd-compat.h" 175*0Sstevel@tonic-gate #include "bsd-cygwin_util.h" 176*0Sstevel@tonic-gate #include "bsd-nextstep.h" 177*0Sstevel@tonic-gate 178*0Sstevel@tonic-gate #include "entropy.h" 179*0Sstevel@tonic-gate #include "g11n.h" 180*0Sstevel@tonic-gate 181*0Sstevel@tonic-gate #ifdef __cplusplus 182*0Sstevel@tonic-gate } 183*0Sstevel@tonic-gate #endif 184*0Sstevel@tonic-gate 185*0Sstevel@tonic-gate #endif /* _INCLUDES_H */ 186