summaryrefslogtreecommitdiff
path: root/servconf.h
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2023-01-17 09:44:48 +0000
committerDamien Miller <djm@mindrot.org>2023-01-17 20:50:41 +1100
commit0293c19807f83141cdf33b443154459f9ee471f6 (patch)
treeb24a66100ba0d93f33bd420e40cb2fb8b30477a5 /servconf.h
parent8ec2e3123802d2beeca06c1644b0b647f6d36dab (diff)
downloadopenssh-git-0293c19807f83141cdf33b443154459f9ee471f6.tar.gz
upstream: Add a sshd_config UnusedConnectionTimeout option to terminate
client connections that have no open channels for some length of time. This complements the recently-added ChannelTimeout option that terminates inactive channels after a timeout. ok markus@ OpenBSD-Commit-ID: ca983be74c0350364c11f8ba3bd692f6f24f5da9
Diffstat (limited to 'servconf.h')
-rw-r--r--servconf.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/servconf.h b/servconf.h
index 4745e58a..7ad43de8 100644
--- a/servconf.h
+++ b/servconf.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: servconf.h,v 1.158 2023/01/06 02:47:19 djm Exp $ */
+/* $OpenBSD: servconf.h,v 1.159 2023/01/17 09:44:48 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -233,6 +233,8 @@ typedef struct {
char **channel_timeouts; /* inactivity timeout by channel type */
u_int num_channel_timeouts;
+
+ int unused_connection_timeout;
} ServerOptions;
/* Information about the incoming connection as used by Match */