1999-10-27 03:42:43 +00:00
|
|
|
/*
|
2000-04-16 01:18:38 +00:00
|
|
|
*
|
1999-11-24 13:26:21 +00:00
|
|
|
* includes.h
|
2000-04-16 01:18:38 +00:00
|
|
|
*
|
1999-11-24 13:26:21 +00:00
|
|
|
* Author: Tatu Ylonen <ylo@cs.hut.fi>
|
2000-04-16 01:18:38 +00:00
|
|
|
*
|
1999-11-24 13:26:21 +00:00
|
|
|
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
|
|
|
* All rights reserved
|
2000-04-16 01:18:38 +00:00
|
|
|
*
|
1999-11-24 13:26:21 +00:00
|
|
|
* Created: Thu Mar 23 16:29:37 1995 ylo
|
2000-04-16 01:18:38 +00:00
|
|
|
*
|
1999-11-24 13:26:21 +00:00
|
|
|
* This file includes most of the needed system headers.
|
2000-04-16 01:18:38 +00:00
|
|
|
*
|
1999-11-24 13:26:21 +00:00
|
|
|
*/
|
1999-10-27 03:42:43 +00:00
|
|
|
|
|
|
|
#ifndef INCLUDES_H
|
|
|
|
#define INCLUDES_H
|
|
|
|
|
|
|
|
#define RCSID(msg) \
|
|
|
|
static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg }
|
|
|
|
|
1999-11-16 02:29:26 +00:00
|
|
|
#include "config.h"
|
|
|
|
|
1999-10-27 03:42:43 +00:00
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/socket.h>
|
|
|
|
#include <sys/param.h>
|
|
|
|
#include <sys/ioctl.h>
|
|
|
|
#include <sys/stat.h>
|
|
|
|
#include <sys/wait.h>
|
|
|
|
#include <sys/un.h>
|
|
|
|
#include <sys/resource.h>
|
|
|
|
|
|
|
|
#include <netinet/tcp.h>
|
|
|
|
#include <arpa/inet.h>
|
|
|
|
#include <netdb.h>
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <ctype.h>
|
|
|
|
#include <errno.h>
|
|
|
|
#include <fcntl.h>
|
|
|
|
#include <signal.h>
|
|
|
|
#include <termios.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <pwd.h>
|
|
|
|
#include <grp.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <time.h>
|
|
|
|
#include <dirent.h>
|
|
|
|
|
1999-12-28 04:09:35 +00:00
|
|
|
#ifdef HAVE_BSTRING_H
|
|
|
|
# include <bstring.h>
|
|
|
|
#endif
|
1999-11-15 04:40:55 +00:00
|
|
|
#ifdef HAVE_NETGROUP_H
|
|
|
|
# include <netgroup.h>
|
|
|
|
#endif
|
1999-12-28 04:09:35 +00:00
|
|
|
#ifdef HAVE_NETDB_H
|
|
|
|
# include <netdb.h>
|
|
|
|
#endif
|
1999-11-10 23:40:23 +00:00
|
|
|
#ifdef HAVE_PATHS_H
|
|
|
|
# include <paths.h>
|
|
|
|
#endif
|
|
|
|
#ifdef HAVE_ENDIAN_H
|
|
|
|
# include <endian.h>
|
|
|
|
#endif
|
1999-11-16 02:29:26 +00:00
|
|
|
#ifdef HAVE_SYS_SELECT_H
|
|
|
|
# include <sys/select.h>
|
|
|
|
#endif
|
1999-11-22 02:57:07 +00:00
|
|
|
#ifdef HAVE_SYS_TIME_H
|
|
|
|
# include <sys/time.h>
|
|
|
|
#endif
|
1999-12-21 00:18:08 +00:00
|
|
|
#ifdef HAVE_SYS_BSDTTY_H
|
|
|
|
# include <sys/bsdtty.h>
|
|
|
|
#endif
|
1999-12-28 04:09:35 +00:00
|
|
|
#ifdef USE_PAM
|
1999-11-16 02:29:26 +00:00
|
|
|
# include <security/pam_appl.h>
|
1999-11-19 04:32:34 +00:00
|
|
|
#endif
|
1999-12-30 04:08:44 +00:00
|
|
|
#ifdef HAVE_POLL_H
|
|
|
|
# include <poll.h>
|
|
|
|
#else
|
|
|
|
# ifdef HAVE_SYS_POLL_H
|
|
|
|
# include <sys/poll.h>
|
|
|
|
# endif
|
|
|
|
#endif
|
2000-01-19 02:45:07 +00:00
|
|
|
#ifdef HAVE_SYS_SYSMACROS_H
|
|
|
|
# include <sys/sysmacros.h>
|
|
|
|
#endif
|
1999-11-10 23:40:23 +00:00
|
|
|
|
|
|
|
#include "version.h"
|
2000-01-14 04:45:46 +00:00
|
|
|
|
|
|
|
/* BSD function replacements */
|
|
|
|
#include "bsd-bindresvport.h"
|
|
|
|
#include "bsd-rresvport.h"
|
1999-12-29 08:56:30 +00:00
|
|
|
#include "bsd-misc.h"
|
1999-11-19 04:32:34 +00:00
|
|
|
#include "bsd-strlcpy.h"
|
1999-11-22 02:57:07 +00:00
|
|
|
#include "bsd-strlcat.h"
|
1999-11-19 04:32:34 +00:00
|
|
|
#include "bsd-mktemp.h"
|
1999-11-26 01:21:24 +00:00
|
|
|
#include "bsd-snprintf.h"
|
1999-12-12 21:27:33 +00:00
|
|
|
#include "bsd-daemon.h"
|
1999-12-24 23:11:29 +00:00
|
|
|
#include "bsd-login.h"
|
- Remove references to SSLeay.
- Big OpenBSD CVS update
- markus@cvs.openbsd.org
[clientloop.c]
- typo
[session.c]
- update proctitle on pty alloc/dealloc, e.g. w/ windows client
[session.c]
- update proctitle for proto 1, too
[channels.h nchan.c serverloop.c session.c sshd.c]
- use c-style comments
- deraadt@cvs.openbsd.org
[scp.c]
- more atomicio
- markus@cvs.openbsd.org
[channels.c]
- set O_NONBLOCK
[ssh.1]
- update AUTHOR
[readconf.c ssh-keygen.c ssh.h]
- default DSA key file ~/.ssh/id_dsa
[clientloop.c]
- typo, rm verbose debug
- deraadt@cvs.openbsd.org
[ssh-keygen.1]
- document DSA use of ssh-keygen
[sshd.8]
- a start at describing what i understand of the DSA side
[ssh-keygen.1]
- document -X and -x
[ssh-keygen.c]
- simplify usage
- markus@cvs.openbsd.org
[sshd.8]
- there is no rhosts_dsa
[ssh-keygen.1]
- document -y, update -X,-x
[nchan.c]
- fix close for non-open ssh1 channels
[servconf.c servconf.h ssh.h sshd.8 sshd.c ]
- s/DsaKey/HostDSAKey/, document option
[sshconnect2.c]
- respect number_of_password_prompts
[channels.c channels.h servconf.c servconf.h session.c sshd.8]
- GatewayPorts for sshd, ok deraadt@
[ssh-add.1 ssh-agent.1 ssh.1]
- more doc on: DSA, id_dsa, known_hosts2, authorized_keys2
[ssh.1]
- more info on proto 2
[sshd.8]
- sync AUTHOR w/ ssh.1
[key.c key.h sshconnect.c]
- print key type when talking about host keys
[packet.c]
- clear padding in ssh2
[dsa.c key.c radix.c ssh.h sshconnect1.c uuencode.c uuencode.h]
- replace broken uuencode w/ libc b64_ntop
[auth2.c]
- log failure before sending the reply
[key.c radix.c uuencode.c]
- remote trailing comments before calling __b64_pton
[auth2.c readconf.c readconf.h servconf.c servconf.h ssh.1]
[sshconnect2.c sshd.8]
- add DSAAuthetication option to ssh/sshd, document SSH2 in sshd.8
- Bring in b64_ntop and b64_pton from OpenBSD libc (bsd-base64.[ch])
2000-05-07 02:03:14 +00:00
|
|
|
#include "bsd-base64.h"
|
1999-10-27 03:42:43 +00:00
|
|
|
|
2000-01-14 04:45:46 +00:00
|
|
|
/* rfc2553 socket API replacements */
|
|
|
|
#include "fake-getaddrinfo.h"
|
|
|
|
#include "fake-getnameinfo.h"
|
|
|
|
#include "fake-socket.h"
|
|
|
|
|
2000-04-16 02:31:48 +00:00
|
|
|
/* Entropy collection */
|
|
|
|
#include "entropy.h"
|
|
|
|
|
1999-10-27 03:42:43 +00:00
|
|
|
/* Define this to be the path of the xauth program. */
|
|
|
|
#ifndef XAUTH_PATH
|
|
|
|
#define XAUTH_PATH "/usr/X11R6/bin/xauth"
|
|
|
|
#endif /* XAUTH_PATH */
|
|
|
|
|
|
|
|
/* Define this to be the path of the rsh program. */
|
|
|
|
#ifndef _PATH_RSH
|
|
|
|
#define _PATH_RSH "/usr/bin/rsh"
|
|
|
|
#endif /* _PATH_RSH */
|
|
|
|
|
1999-11-25 00:54:57 +00:00
|
|
|
/*
|
|
|
|
* Define this to use pipes instead of socketpairs for communicating with the
|
|
|
|
* client program. Socketpairs do not seem to work on all systems.
|
|
|
|
*/
|
2000-02-01 12:05:30 +00:00
|
|
|
/* #define USE_PIPES 1 */
|
1999-10-27 03:42:43 +00:00
|
|
|
|
1999-11-24 13:26:21 +00:00
|
|
|
#endif /* INCLUDES_H */
|