summaryrefslogtreecommitdiff
path: root/includes.h
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2007-06-12 16:16:35 +0000
committerColin Watson <cjwatson@debian.org>2007-06-12 16:16:35 +0000
commitb7e40fa9da0b5491534a429dadb321eab5a77558 (patch)
treebed1da11e9f829925797aa093e379fc0b5868ecd /includes.h
parent4f84beedf1005e44ff33c854abd6b711ffc0adb7 (diff)
parent086ea76990b1e6287c24b6db74adffd4605eb3b0 (diff)
* New upstream release (closes: #395507, #397961, #420035). Important
changes not previously backported to 4.3p2: - 4.4/4.4p1 (http://www.openssh.org/txt/release-4.4): + On portable OpenSSH, fix a GSSAPI authentication abort that could be used to determine the validity of usernames on some platforms. + Implemented conditional configuration in sshd_config(5) using the "Match" directive. This allows some configuration options to be selectively overridden if specific criteria (based on user, group, hostname and/or address) are met. So far a useful subset of post-authentication options are supported and more are expected to be added in future releases. + Add support for Diffie-Hellman group exchange key agreement with a final hash of SHA256. + Added a "ForceCommand" directive to sshd_config(5). Similar to the command="..." option accepted in ~/.ssh/authorized_keys, this forces the execution of the specified command regardless of what the user requested. This is very useful in conjunction with the new "Match" option. + Add a "PermitOpen" directive to sshd_config(5). This mirrors the permitopen="..." authorized_keys option, allowing fine-grained control over the port-forwardings that a user is allowed to establish. + Add optional logging of transactions to sftp-server(8). + ssh(1) will now record port numbers for hosts stored in ~/.ssh/known_hosts when a non-standard port has been requested (closes: #50612). + Add an "ExitOnForwardFailure" option to cause ssh(1) to exit (with a non-zero exit code) when requested port forwardings could not be established. + Extend sshd_config(5) "SubSystem" declarations to allow the specification of command-line arguments. + Replacement of all integer overflow susceptible invocations of malloc(3) and realloc(3) with overflow-checking equivalents. + Many manpage fixes and improvements. + Add optional support for OpenSSL hardware accelerators (engines), enabled using the --with-ssl-engine configure option. + Tokens in configuration files may be double-quoted in order to contain spaces (closes: #319639). + Move a debug() call out of a SIGCHLD handler, fixing a hang when the session exits very quickly (closes: #307890). + Fix some incorrect buffer allocation calculations (closes: #410599). + ssh-add doesn't ask for a passphrase if key file permissions are too liberal (closes: #103677). + Likewise, ssh doesn't ask either (closes: #99675). - 4.6/4.6p1 (http://www.openssh.org/txt/release-4.6): + sshd now allows the enabling and disabling of authentication methods on a per user, group, host and network basis via the Match directive in sshd_config. + Fixed an inconsistent check for a terminal when displaying scp progress meter (closes: #257524). + Fix "hang on exit" when background processes are running at the time of exit on a ttyful/login session (closes: #88337). * Update to current GSSAPI patch from http://www.sxw.org.uk/computing/patches/openssh-4.6p1-gsskex-20070312.patch; install ChangeLog.gssapi.
Diffstat (limited to 'includes.h')
-rw-r--r--includes.h66
1 files changed, 12 insertions, 54 deletions
diff --git a/includes.h b/includes.h
index 520817400..967fcc26c 100644
--- a/includes.h
+++ b/includes.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: includes.h,v 1.22 2006/01/01 08:59:27 stevesk Exp $ */ 1/* $OpenBSD: includes.h,v 1.54 2006/07/22 20:48:23 stevesk Exp $ */
2 2
3/* 3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi> 4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -16,44 +16,24 @@
16#ifndef INCLUDES_H 16#ifndef INCLUDES_H
17#define INCLUDES_H 17#define INCLUDES_H
18 18
19#define RCSID(msg) \
20static /**/const char *const rcsid[] = { (const char *)rcsid, "\100(#)" msg }
21
22#include "config.h" 19#include "config.h"
23 20
24#define _GNU_SOURCE /* activate extra prototypes for glibc */ 21#define _GNU_SOURCE /* activate extra prototypes for glibc */
25 22
26#include <stdarg.h> 23#include <sys/types.h>
27#include <stdio.h> 24#include <sys/socket.h> /* For CMSG_* */
28#include <ctype.h>
29#include <errno.h>
30#include <fcntl.h> /* For O_NONBLOCK */
31#include <signal.h>
32#include <stdlib.h>
33#include <string.h>
34#include <stdarg.h>
35#include <pwd.h>
36#include <grp.h>
37#include <time.h>
38#include <dirent.h>
39#include <stddef.h>
40 25
41#ifdef HAVE_LIMITS_H 26#ifdef HAVE_LIMITS_H
42# include <limits.h> /* For PATH_MAX */ 27# include <limits.h> /* For PATH_MAX */
43#endif 28#endif
44#ifdef HAVE_GETOPT_H
45# include <getopt.h>
46#endif
47#ifdef HAVE_BSTRING_H 29#ifdef HAVE_BSTRING_H
48# include <bstring.h> 30# include <bstring.h>
49#endif 31#endif
50#if defined(HAVE_GLOB_H) && defined(GLOB_HAS_ALTDIRFUNC) && \ 32#if defined(HAVE_GLOB_H) && defined(GLOB_HAS_ALTDIRFUNC) && \
51 defined(GLOB_HAS_GL_MATCHC) 33 defined(GLOB_HAS_GL_MATCHC) && \
34 defined(HAVE_DECL_GLOB_NOMATCH) && HAVE_DECL_GLOB_NOMATCH != 0
52# include <glob.h> 35# include <glob.h>
53#endif 36#endif
54#ifdef HAVE_NETGROUP_H
55# include <netgroup.h>
56#endif
57#ifdef HAVE_ENDIAN_H 37#ifdef HAVE_ENDIAN_H
58# include <endian.h> 38# include <endian.h>
59#endif 39#endif
@@ -67,10 +47,11 @@ static /**/const char *const rcsid[] = { (const char *)rcsid, "\100(#)" msg }
67# include <maillock.h> /* For _PATH_MAILDIR */ 47# include <maillock.h> /* For _PATH_MAILDIR */
68#endif 48#endif
69#ifdef HAVE_NEXT 49#ifdef HAVE_NEXT
70# include <libc.h> 50# include <libc.h>
51#endif
52#ifdef HAVE_PATHS
53# include <paths.h>
71#endif 54#endif
72#include <unistd.h> /* For STDIN_FILENO, etc */
73#include <termios.h> /* Struct winsize */
74 55
75/* 56/*
76 *-*-nto-qnx needs these headers for strcasecmp and LASTLOG_FILE respectively 57 *-*-nto-qnx needs these headers for strcasecmp and LASTLOG_FILE respectively
@@ -86,39 +67,22 @@ static /**/const char *const rcsid[] = { (const char *)rcsid, "\100(#)" msg }
86# include <utmp.h> 67# include <utmp.h>
87#endif 68#endif
88#ifdef HAVE_UTMPX_H 69#ifdef HAVE_UTMPX_H
89# ifdef HAVE_TV_IN_UTMPX
90# include <sys/time.h>
91# endif
92# include <utmpx.h> 70# include <utmpx.h>
93#endif 71#endif
94#ifdef HAVE_LASTLOG_H 72#ifdef HAVE_LASTLOG_H
95# include <lastlog.h> 73# include <lastlog.h>
96#endif 74#endif
97#ifdef HAVE_PATHS_H
98# include <paths.h> /* For _PATH_XXX */
99#endif
100 75
101#include <sys/types.h>
102#include <sys/socket.h>
103#include <sys/ioctl.h>
104#include <sys/wait.h>
105#ifdef HAVE_SYS_TIME_H
106# include <sys/time.h> /* For timersub */
107#endif
108#include <sys/resource.h>
109#ifdef HAVE_SYS_SELECT_H 76#ifdef HAVE_SYS_SELECT_H
110# include <sys/select.h> 77# include <sys/select.h>
111#endif 78#endif
112#ifdef HAVE_SYS_BSDTTY_H 79#ifdef HAVE_SYS_BSDTTY_H
113# include <sys/bsdtty.h> 80# include <sys/bsdtty.h>
114#endif 81#endif
115#include <sys/param.h> /* For MAXPATHLEN and roundup() */
116#ifdef HAVE_SYS_UN_H
117# include <sys/un.h> /* For sockaddr_un */
118#endif
119#ifdef HAVE_STDINT_H 82#ifdef HAVE_STDINT_H
120# include <stdint.h> 83# include <stdint.h>
121#endif 84#endif
85#include <termios.h>
122#ifdef HAVE_SYS_BITYPES_H 86#ifdef HAVE_SYS_BITYPES_H
123# include <sys/bitypes.h> /* For u_intXX_t */ 87# include <sys/bitypes.h> /* For u_intXX_t */
124#endif 88#endif
@@ -144,14 +108,8 @@ static /**/const char *const rcsid[] = { (const char *)rcsid, "\100(#)" msg }
144#include <sys/ptms.h> /* for grantpt() and friends */ 108#include <sys/ptms.h> /* for grantpt() and friends */
145#endif 109#endif
146 110
111#include <netinet/in.h>
147#include <netinet/in_systm.h> /* For typedefs */ 112#include <netinet/in_systm.h> /* For typedefs */
148#include <netinet/in.h> /* For IPv6 macros */
149#include <netinet/ip.h> /* For IPTOS macros */
150#include <netinet/tcp.h>
151#include <arpa/inet.h>
152#if defined(HAVE_NETDB_H)
153# include <netdb.h>
154#endif
155#ifdef HAVE_RPC_TYPES_H 113#ifdef HAVE_RPC_TYPES_H
156# include <rpc/types.h> /* For INADDR_LOOPBACK */ 114# include <rpc/types.h> /* For INADDR_LOOPBACK */
157#endif 115#endif
@@ -205,7 +163,7 @@ static /**/const char *const rcsid[] = { (const char *)rcsid, "\100(#)" msg }
205 163
206#include "defines.h" 164#include "defines.h"
207 165
208#include "version.h" 166#include "platform.h"
209#include "openbsd-compat/openbsd-compat.h" 167#include "openbsd-compat/openbsd-compat.h"
210#include "openbsd-compat/bsd-nextstep.h" 168#include "openbsd-compat/bsd-nextstep.h"
211 169