|
Lines 128-136
Link Here
|
| 128 |
oEnableSSHKeysign, oRekeyLimit, oVerifyHostKeyDNS, oConnectTimeout, |
128 |
oEnableSSHKeysign, oRekeyLimit, oVerifyHostKeyDNS, oConnectTimeout, |
| 129 |
oAddressFamily, oGssAuthentication, oGssDelegateCreds, |
129 |
oAddressFamily, oGssAuthentication, oGssDelegateCreds, |
| 130 |
oServerAliveInterval, oServerAliveCountMax, oIdentitiesOnly, |
130 |
oServerAliveInterval, oServerAliveCountMax, oIdentitiesOnly, |
| 131 |
oSendEnv, oControlPath, oControlMaster, oHashKnownHosts, |
131 |
oSendEnv, oControlPath, oControlMaster, oControlPersist, oHashKnownHosts, |
| 132 |
oTunnel, oTunnelDevice, oLocalCommand, oPermitLocalCommand, |
132 |
oTunnel, oTunnelDevice, oLocalCommand, oPermitLocalCommand, |
| 133 |
oDeprecated, oUnsupported |
133 |
oControlTimeout, oIdleTimeout, oDeprecated, oUnsupported |
| 134 |
} OpCodes; |
134 |
} OpCodes; |
| 135 |
|
135 |
|
| 136 |
/* Textual representations of the tokens. */ |
136 |
/* Textual representations of the tokens. */ |
|
Lines 221-231
Link Here
|
| 221 |
{ "sendenv", oSendEnv }, |
221 |
{ "sendenv", oSendEnv }, |
| 222 |
{ "controlpath", oControlPath }, |
222 |
{ "controlpath", oControlPath }, |
| 223 |
{ "controlmaster", oControlMaster }, |
223 |
{ "controlmaster", oControlMaster }, |
|
|
224 |
{ "controlpersist", oControlPersist }, |
| 225 |
{ "controltimeout", oControlTimeout }, |
| 224 |
{ "hashknownhosts", oHashKnownHosts }, |
226 |
{ "hashknownhosts", oHashKnownHosts }, |
| 225 |
{ "tunnel", oTunnel }, |
227 |
{ "tunnel", oTunnel }, |
| 226 |
{ "tunneldevice", oTunnelDevice }, |
228 |
{ "tunneldevice", oTunnelDevice }, |
| 227 |
{ "localcommand", oLocalCommand }, |
229 |
{ "localcommand", oLocalCommand }, |
| 228 |
{ "permitlocalcommand", oPermitLocalCommand }, |
230 |
{ "permitlocalcommand", oPermitLocalCommand }, |
|
|
231 |
{ "idletimeout", oIdleTimeout }, |
| 229 |
{ NULL, oBadOption } |
232 |
{ NULL, oBadOption } |
| 230 |
}; |
233 |
}; |
| 231 |
|
234 |
|
|
Lines 868-873
Link Here
|
| 868 |
*intptr = value; |
871 |
*intptr = value; |
| 869 |
break; |
872 |
break; |
| 870 |
|
873 |
|
|
|
874 |
case oControlPersist: |
| 875 |
intptr = &options->control_persist; |
| 876 |
goto parse_flag; |
| 877 |
|
| 878 |
case oControlTimeout: |
| 879 |
intptr = &options->control_timeout; |
| 880 |
goto parse_time; |
| 881 |
|
| 871 |
case oHashKnownHosts: |
882 |
case oHashKnownHosts: |
| 872 |
intptr = &options->hash_known_hosts; |
883 |
intptr = &options->hash_known_hosts; |
| 873 |
goto parse_flag; |
884 |
goto parse_flag; |
|
Lines 915-920
Link Here
|
| 915 |
intptr = &options->permit_local_command; |
926 |
intptr = &options->permit_local_command; |
| 916 |
goto parse_flag; |
927 |
goto parse_flag; |
| 917 |
|
928 |
|
|
|
929 |
case oIdleTimeout: |
| 930 |
intptr = &options->idle_timeout; |
| 931 |
goto parse_time; |
| 932 |
|
| 918 |
case oDeprecated: |
933 |
case oDeprecated: |
| 919 |
debug("%s line %d: Deprecated option \"%s\"", |
934 |
debug("%s line %d: Deprecated option \"%s\"", |
| 920 |
filename, linenum, keyword); |
935 |
filename, linenum, keyword); |
|
Lines 1059-1070
Link Here
|
| 1059 |
options->num_send_env = 0; |
1074 |
options->num_send_env = 0; |
| 1060 |
options->control_path = NULL; |
1075 |
options->control_path = NULL; |
| 1061 |
options->control_master = -1; |
1076 |
options->control_master = -1; |
|
|
1077 |
options->control_persist = -1; |
| 1078 |
options->control_timeout = -1; |
| 1062 |
options->hash_known_hosts = -1; |
1079 |
options->hash_known_hosts = -1; |
| 1063 |
options->tun_open = -1; |
1080 |
options->tun_open = -1; |
| 1064 |
options->tun_local = -1; |
1081 |
options->tun_local = -1; |
| 1065 |
options->tun_remote = -1; |
1082 |
options->tun_remote = -1; |
| 1066 |
options->local_command = NULL; |
1083 |
options->local_command = NULL; |
| 1067 |
options->permit_local_command = -1; |
1084 |
options->permit_local_command = -1; |
|
|
1085 |
options->idle_timeout = -1; |
| 1068 |
} |
1086 |
} |
| 1069 |
|
1087 |
|
| 1070 |
/* |
1088 |
/* |
|
Lines 1189-1194
Link Here
|
| 1189 |
options->server_alive_count_max = 3; |
1207 |
options->server_alive_count_max = 3; |
| 1190 |
if (options->control_master == -1) |
1208 |
if (options->control_master == -1) |
| 1191 |
options->control_master = 0; |
1209 |
options->control_master = 0; |
|
|
1210 |
if (options->control_persist == -1) |
| 1211 |
options->control_persist = 0; |
| 1212 |
if (options->control_timeout == -1) |
| 1213 |
options->control_timeout = 0; |
| 1192 |
if (options->hash_known_hosts == -1) |
1214 |
if (options->hash_known_hosts == -1) |
| 1193 |
options->hash_known_hosts = 0; |
1215 |
options->hash_known_hosts = 0; |
| 1194 |
if (options->tun_open == -1) |
1216 |
if (options->tun_open == -1) |
|
Lines 1199-1204
Link Here
|
| 1199 |
options->tun_remote = SSH_TUNID_ANY; |
1221 |
options->tun_remote = SSH_TUNID_ANY; |
| 1200 |
if (options->permit_local_command == -1) |
1222 |
if (options->permit_local_command == -1) |
| 1201 |
options->permit_local_command = 0; |
1223 |
options->permit_local_command = 0; |
|
|
1224 |
if (options->idle_timeout == -1) |
| 1225 |
options->idle_timeout = 0; |
| 1202 |
/* options->local_command should not be set by default */ |
1226 |
/* options->local_command should not be set by default */ |
| 1203 |
/* options->proxy_command should not be set by default */ |
1227 |
/* options->proxy_command should not be set by default */ |
| 1204 |
/* options->user will be set in the main program if appropriate */ |
1228 |
/* options->user will be set in the main program if appropriate */ |