summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2006-07-24 14:05:48 +1000
committerDamien Miller <djm@mindrot.org>2006-07-24 14:05:48 +1000
commitd1de9950e5ae91584aa955a4f85c9c7579aa76af (patch)
tree19c51d4a04884d30a5a65ceb2340782224e4fa9d
parentf757d22e8b72b04d5a9228e2075649ded14314db (diff)
- dtucker@cvs.openbsd.org 2006/07/19 08:56:41
[servconf.c sshd_config.5] Add support for X11Forwaring, X11DisplayOffset and X11UseLocalhost to Match. ok djm@
-rw-r--r--ChangeLog6
-rw-r--r--servconf.c14
-rw-r--r--sshd_config.57
3 files changed, 20 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 11e218d4b..e42f8a786 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -52,6 +52,10 @@
52 - stevesk@cvs.openbsd.org 2006/07/18 22:27:55 52 - stevesk@cvs.openbsd.org 2006/07/18 22:27:55
53 [dh.c] 53 [dh.c]
54 remove unneeded includes; ok djm@ 54 remove unneeded includes; ok djm@
55 - dtucker@cvs.openbsd.org 2006/07/19 08:56:41
56 [servconf.c sshd_config.5]
57 Add support for X11Forwaring, X11DisplayOffset and X11UseLocalhost to
58 Match. ok djm@
55 59
5620060713 6020060713
57 - (dtucker) [auth-krb5.c auth-pam.c] Still more errno.h 61 - (dtucker) [auth-krb5.c auth-pam.c] Still more errno.h
@@ -4970,4 +4974,4 @@
4970 - (djm) Trim deprecated options from INSTALL. Mention UsePAM 4974 - (djm) Trim deprecated options from INSTALL. Mention UsePAM
4971 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu 4975 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
4972 4976
4973$Id: ChangeLog,v 1.4420 2006/07/24 04:05:24 djm Exp $ 4977$Id: ChangeLog,v 1.4421 2006/07/24 04:05:48 djm Exp $
diff --git a/servconf.c b/servconf.c
index 4f5cb19db..bc457eebe 100644
--- a/servconf.c
+++ b/servconf.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: servconf.c,v 1.156 2006/07/17 12:06:00 dtucker Exp $ */ 1/* $OpenBSD: servconf.c,v 1.157 2006/07/19 08:56:41 dtucker Exp $ */
2/* 2/*
3 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 3 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
4 * All rights reserved 4 * All rights reserved
@@ -357,9 +357,9 @@ static struct {
357 { "printlastlog", sPrintLastLog, SSHCFG_GLOBAL }, 357 { "printlastlog", sPrintLastLog, SSHCFG_GLOBAL },
358 { "ignorerhosts", sIgnoreRhosts, SSHCFG_GLOBAL }, 358 { "ignorerhosts", sIgnoreRhosts, SSHCFG_GLOBAL },
359 { "ignoreuserknownhosts", sIgnoreUserKnownHosts, SSHCFG_GLOBAL }, 359 { "ignoreuserknownhosts", sIgnoreUserKnownHosts, SSHCFG_GLOBAL },
360 { "x11forwarding", sX11Forwarding, SSHCFG_GLOBAL }, 360 { "x11forwarding", sX11Forwarding, SSHCFG_ALL },
361 { "x11displayoffset", sX11DisplayOffset, SSHCFG_GLOBAL }, 361 { "x11displayoffset", sX11DisplayOffset, SSHCFG_ALL },
362 { "x11uselocalhost", sX11UseLocalhost, SSHCFG_GLOBAL }, 362 { "x11uselocalhost", sX11UseLocalhost, SSHCFG_ALL },
363 { "xauthlocation", sXAuthLocation, SSHCFG_GLOBAL }, 363 { "xauthlocation", sXAuthLocation, SSHCFG_GLOBAL },
364 { "strictmodes", sStrictModes, SSHCFG_GLOBAL }, 364 { "strictmodes", sStrictModes, SSHCFG_GLOBAL },
365 { "permitemptypasswords", sEmptyPasswd, SSHCFG_GLOBAL }, 365 { "permitemptypasswords", sEmptyPasswd, SSHCFG_GLOBAL },
@@ -1247,6 +1247,12 @@ copy_set_server_options(ServerOptions *dst, ServerOptions *src)
1247 dst->allow_tcp_forwarding = src->allow_tcp_forwarding; 1247 dst->allow_tcp_forwarding = src->allow_tcp_forwarding;
1248 if (src->gateway_ports != -1) 1248 if (src->gateway_ports != -1)
1249 dst->gateway_ports = src->gateway_ports; 1249 dst->gateway_ports = src->gateway_ports;
1250 if (src->x11_display_offset != -1)
1251 dst->x11_display_offset = src->x11_display_offset;
1252 if (src->x11_forwarding != -1)
1253 dst->x11_forwarding = src->x11_forwarding;
1254 if (src->x11_use_localhost != -1)
1255 dst->x11_use_localhost = src->x11_use_localhost;
1250} 1256}
1251 1257
1252void 1258void
diff --git a/sshd_config.5 b/sshd_config.5
index 02996a2ed..9196b761e 100644
--- a/sshd_config.5
+++ b/sshd_config.5
@@ -34,7 +34,7 @@
34.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 34.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
35.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 35.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36.\" 36.\"
37.\" $OpenBSD: sshd_config.5,v 1.65 2006/07/18 08:22:23 dtucker Exp $ 37.\" $OpenBSD: sshd_config.5,v 1.66 2006/07/19 08:56:41 dtucker Exp $
38.Dd September 25, 1999 38.Dd September 25, 1999
39.Dt SSHD_CONFIG 5 39.Dt SSHD_CONFIG 5
40.Os 40.Os
@@ -485,8 +485,11 @@ keyword.
485Available keywords are 485Available keywords are
486.Cm AllowTcpForwarding , 486.Cm AllowTcpForwarding ,
487.Cm GatewayPorts , 487.Cm GatewayPorts ,
488.Cm PermitOpen ,
489.Cm X11DisplayOffset ,
490.Cm X11Forwarding ,
488and 491and
489.Cm PermitOpen . 492.Cm X11UseLocalHost .
490.It Cm MaxAuthTries 493.It Cm MaxAuthTries
491Specifies the maximum number of authentication attempts permitted per 494Specifies the maximum number of authentication attempts permitted per
492connection. 495connection.