diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2002-06-21 01:09:47 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2002-06-21 01:09:47 +0000 |
commit | 23e0f667f88fabb38fd22cedf50e81e78fb99e3e (patch) | |
tree | cc55e9a9d007a61a2f4cd1469e1b8f786ee38313 /servconf.c | |
parent | 9721e92ba8ec5e1c1c3926ce94260605b73243b3 (diff) |
- markus@cvs.openbsd.org 2002/06/20 23:05:56
[servconf.c servconf.h session.c sshd.c]
allow Compression=yes/no in sshd_config
Diffstat (limited to 'servconf.c')
-rw-r--r-- | servconf.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/servconf.c b/servconf.c index 7a776ac8e..b7f941ab5 100644 --- a/servconf.c +++ b/servconf.c | |||
@@ -10,7 +10,7 @@ | |||
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include "includes.h" | 12 | #include "includes.h" |
13 | RCSID("$OpenBSD: servconf.c,v 1.110 2002/05/15 21:56:38 markus Exp $"); | 13 | RCSID("$OpenBSD: servconf.c,v 1.111 2002/06/20 23:05:55 markus Exp $"); |
14 | 14 | ||
15 | #if defined(KRB4) | 15 | #if defined(KRB4) |
16 | #include <krb.h> | 16 | #include <krb.h> |
@@ -102,6 +102,7 @@ initialize_server_options(ServerOptions *options) | |||
102 | options->challenge_response_authentication = -1; | 102 | options->challenge_response_authentication = -1; |
103 | options->permit_empty_passwd = -1; | 103 | options->permit_empty_passwd = -1; |
104 | options->use_login = -1; | 104 | options->use_login = -1; |
105 | options->compression = -1; | ||
105 | options->allow_tcp_forwarding = -1; | 106 | options->allow_tcp_forwarding = -1; |
106 | options->num_allow_users = 0; | 107 | options->num_allow_users = 0; |
107 | options->num_deny_users = 0; | 108 | options->num_deny_users = 0; |
@@ -224,6 +225,8 @@ fill_default_server_options(ServerOptions *options) | |||
224 | options->permit_empty_passwd = 0; | 225 | options->permit_empty_passwd = 0; |
225 | if (options->use_login == -1) | 226 | if (options->use_login == -1) |
226 | options->use_login = 0; | 227 | options->use_login = 0; |
228 | if (options->compression == -1) | ||
229 | options->compression = 1; | ||
227 | if (options->allow_tcp_forwarding == -1) | 230 | if (options->allow_tcp_forwarding == -1) |
228 | options->allow_tcp_forwarding = 1; | 231 | options->allow_tcp_forwarding = 1; |
229 | if (options->gateway_ports == -1) | 232 | if (options->gateway_ports == -1) |
@@ -278,7 +281,7 @@ typedef enum { | |||
278 | sPrintMotd, sPrintLastLog, sIgnoreRhosts, | 281 | sPrintMotd, sPrintLastLog, sIgnoreRhosts, |
279 | sX11Forwarding, sX11DisplayOffset, sX11UseLocalhost, | 282 | sX11Forwarding, sX11DisplayOffset, sX11UseLocalhost, |
280 | sStrictModes, sEmptyPasswd, sKeepAlives, | 283 | sStrictModes, sEmptyPasswd, sKeepAlives, |
281 | sUseLogin, sAllowTcpForwarding, | 284 | sUseLogin, sAllowTcpForwarding, sCompression, |
282 | sAllowUsers, sDenyUsers, sAllowGroups, sDenyGroups, | 285 | sAllowUsers, sDenyUsers, sAllowGroups, sDenyGroups, |
283 | sIgnoreUserKnownHosts, sCiphers, sMacs, sProtocol, sPidFile, | 286 | sIgnoreUserKnownHosts, sCiphers, sMacs, sProtocol, sPidFile, |
284 | sGatewayPorts, sPubkeyAuthentication, sXAuthLocation, sSubsystem, sMaxStartups, | 287 | sGatewayPorts, sPubkeyAuthentication, sXAuthLocation, sSubsystem, sMaxStartups, |
@@ -342,6 +345,7 @@ static struct { | |||
342 | { "strictmodes", sStrictModes }, | 345 | { "strictmodes", sStrictModes }, |
343 | { "permitemptypasswords", sEmptyPasswd }, | 346 | { "permitemptypasswords", sEmptyPasswd }, |
344 | { "uselogin", sUseLogin }, | 347 | { "uselogin", sUseLogin }, |
348 | { "compression", sCompression }, | ||
345 | { "keepalive", sKeepAlives }, | 349 | { "keepalive", sKeepAlives }, |
346 | { "allowtcpforwarding", sAllowTcpForwarding }, | 350 | { "allowtcpforwarding", sAllowTcpForwarding }, |
347 | { "allowusers", sAllowUsers }, | 351 | { "allowusers", sAllowUsers }, |
@@ -704,6 +708,10 @@ parse_flag: | |||
704 | intptr = &options->use_login; | 708 | intptr = &options->use_login; |
705 | goto parse_flag; | 709 | goto parse_flag; |
706 | 710 | ||
711 | case sCompression: | ||
712 | intptr = &options->compression; | ||
713 | goto parse_flag; | ||
714 | |||
707 | case sGatewayPorts: | 715 | case sGatewayPorts: |
708 | intptr = &options->gateway_ports; | 716 | intptr = &options->gateway_ports; |
709 | goto parse_flag; | 717 | goto parse_flag; |