diff options
Diffstat (limited to 'servconf.c')
-rw-r--r-- | servconf.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/servconf.c b/servconf.c index 0df62ad63..a6824a863 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.128 2003/09/29 20:19:57 markus Exp $"); | 13 | RCSID("$OpenBSD: servconf.c,v 1.129 2003/12/09 21:53:36 markus Exp $"); |
14 | 14 | ||
15 | #include "ssh.h" | 15 | #include "ssh.h" |
16 | #include "log.h" | 16 | #include "log.h" |
@@ -61,7 +61,7 @@ initialize_server_options(ServerOptions *options) | |||
61 | options->x11_use_localhost = -1; | 61 | options->x11_use_localhost = -1; |
62 | options->xauth_location = NULL; | 62 | options->xauth_location = NULL; |
63 | options->strict_modes = -1; | 63 | options->strict_modes = -1; |
64 | options->keepalives = -1; | 64 | options->tcp_keep_alive = -1; |
65 | options->log_facility = SYSLOG_FACILITY_NOT_SET; | 65 | options->log_facility = SYSLOG_FACILITY_NOT_SET; |
66 | options->log_level = SYSLOG_LEVEL_NOT_SET; | 66 | options->log_level = SYSLOG_LEVEL_NOT_SET; |
67 | options->rhosts_rsa_authentication = -1; | 67 | options->rhosts_rsa_authentication = -1; |
@@ -159,8 +159,8 @@ fill_default_server_options(ServerOptions *options) | |||
159 | options->xauth_location = _PATH_XAUTH; | 159 | options->xauth_location = _PATH_XAUTH; |
160 | if (options->strict_modes == -1) | 160 | if (options->strict_modes == -1) |
161 | options->strict_modes = 1; | 161 | options->strict_modes = 1; |
162 | if (options->keepalives == -1) | 162 | if (options->tcp_keep_alive == -1) |
163 | options->keepalives = 1; | 163 | options->tcp_keep_alive = 1; |
164 | if (options->log_facility == SYSLOG_FACILITY_NOT_SET) | 164 | if (options->log_facility == SYSLOG_FACILITY_NOT_SET) |
165 | options->log_facility = SYSLOG_FACILITY_AUTH; | 165 | options->log_facility = SYSLOG_FACILITY_AUTH; |
166 | if (options->log_level == SYSLOG_LEVEL_NOT_SET) | 166 | if (options->log_level == SYSLOG_LEVEL_NOT_SET) |
@@ -254,7 +254,7 @@ typedef enum { | |||
254 | sPasswordAuthentication, sKbdInteractiveAuthentication, sListenAddress, | 254 | sPasswordAuthentication, sKbdInteractiveAuthentication, sListenAddress, |
255 | sPrintMotd, sPrintLastLog, sIgnoreRhosts, | 255 | sPrintMotd, sPrintLastLog, sIgnoreRhosts, |
256 | sX11Forwarding, sX11DisplayOffset, sX11UseLocalhost, | 256 | sX11Forwarding, sX11DisplayOffset, sX11UseLocalhost, |
257 | sStrictModes, sEmptyPasswd, sKeepAlives, | 257 | sStrictModes, sEmptyPasswd, sTCPKeepAlive, |
258 | sPermitUserEnvironment, sUseLogin, sAllowTcpForwarding, sCompression, | 258 | sPermitUserEnvironment, sUseLogin, sAllowTcpForwarding, sCompression, |
259 | sAllowUsers, sDenyUsers, sAllowGroups, sDenyGroups, | 259 | sAllowUsers, sDenyUsers, sAllowGroups, sDenyGroups, |
260 | sIgnoreUserKnownHosts, sCiphers, sMacs, sProtocol, sPidFile, | 260 | sIgnoreUserKnownHosts, sCiphers, sMacs, sProtocol, sPidFile, |
@@ -334,7 +334,8 @@ static struct { | |||
334 | { "permituserenvironment", sPermitUserEnvironment }, | 334 | { "permituserenvironment", sPermitUserEnvironment }, |
335 | { "uselogin", sUseLogin }, | 335 | { "uselogin", sUseLogin }, |
336 | { "compression", sCompression }, | 336 | { "compression", sCompression }, |
337 | { "keepalive", sKeepAlives }, | 337 | { "tcpkeepalive", sTCPKeepAlive }, |
338 | { "keepalive", sTCPKeepAlive }, /* obsolete alias */ | ||
338 | { "allowtcpforwarding", sAllowTcpForwarding }, | 339 | { "allowtcpforwarding", sAllowTcpForwarding }, |
339 | { "allowusers", sAllowUsers }, | 340 | { "allowusers", sAllowUsers }, |
340 | { "denyusers", sDenyUsers }, | 341 | { "denyusers", sDenyUsers }, |
@@ -677,8 +678,8 @@ parse_flag: | |||
677 | intptr = &options->strict_modes; | 678 | intptr = &options->strict_modes; |
678 | goto parse_flag; | 679 | goto parse_flag; |
679 | 680 | ||
680 | case sKeepAlives: | 681 | case sTCPKeepAlive: |
681 | intptr = &options->keepalives; | 682 | intptr = &options->tcp_keep_alive; |
682 | goto parse_flag; | 683 | goto parse_flag; |
683 | 684 | ||
684 | case sEmptyPasswd: | 685 | case sEmptyPasswd: |