|
Lines 128-134
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, |
|
|
132 |
oHashKnownHosts, |
| 132 |
oTunnel, oTunnelDevice, oLocalCommand, oPermitLocalCommand, |
133 |
oTunnel, oTunnelDevice, oLocalCommand, oPermitLocalCommand, |
| 133 |
oDeprecated, oUnsupported |
134 |
oDeprecated, oUnsupported |
| 134 |
} OpCodes; |
135 |
} OpCodes; |
|
Lines 221-226
Link Here
|
| 221 |
{ "sendenv", oSendEnv }, |
222 |
{ "sendenv", oSendEnv }, |
| 222 |
{ "controlpath", oControlPath }, |
223 |
{ "controlpath", oControlPath }, |
| 223 |
{ "controlmaster", oControlMaster }, |
224 |
{ "controlmaster", oControlMaster }, |
|
|
225 |
{ "controlpersist", oControlPersist }, |
| 224 |
{ "hashknownhosts", oHashKnownHosts }, |
226 |
{ "hashknownhosts", oHashKnownHosts }, |
| 225 |
{ "tunnel", oTunnel }, |
227 |
{ "tunnel", oTunnel }, |
| 226 |
{ "tunneldevice", oTunnelDevice }, |
228 |
{ "tunneldevice", oTunnelDevice }, |
|
Lines 868-873
Link Here
|
| 868 |
*intptr = value; |
870 |
*intptr = value; |
| 869 |
break; |
871 |
break; |
| 870 |
|
872 |
|
|
|
873 |
case oControlPersist: |
| 874 |
/* no/false/yes/true, or a time spec */ |
| 875 |
intptr = &options->control_persist; |
| 876 |
arg = strdelim(&s); |
| 877 |
if (!arg || *arg == '\0') |
| 878 |
fatal("%.200s line %d: Missing ControlPersist" |
| 879 |
" argument.", filename, linenum); |
| 880 |
value = 0; /* To avoid compiler warning... */ |
| 881 |
value2 = 0; /* timeout */ |
| 882 |
if (strcmp(arg, "no") == 0 || strcmp(arg, "false") == 0) |
| 883 |
value = 0; |
| 884 |
else if (strcmp(arg, "yes") == 0 || strcmp(arg, "true") == 0) |
| 885 |
value = 1; |
| 886 |
else if ((value2 = convtime(arg)) > 0) |
| 887 |
value = 1; |
| 888 |
else |
| 889 |
fatal("%.200s line %d: Bad ControlPersist argument.", |
| 890 |
filename, linenum); |
| 891 |
if (*activep && *intptr == -1) { |
| 892 |
*intptr = value; |
| 893 |
options->control_persist_timeout = value2; |
| 894 |
} |
| 895 |
break; |
| 896 |
|
| 871 |
case oHashKnownHosts: |
897 |
case oHashKnownHosts: |
| 872 |
intptr = &options->hash_known_hosts; |
898 |
intptr = &options->hash_known_hosts; |
| 873 |
goto parse_flag; |
899 |
goto parse_flag; |
|
Lines 1059-1064
Link Here
|
| 1059 |
options->num_send_env = 0; |
1085 |
options->num_send_env = 0; |
| 1060 |
options->control_path = NULL; |
1086 |
options->control_path = NULL; |
| 1061 |
options->control_master = -1; |
1087 |
options->control_master = -1; |
|
|
1088 |
options->control_persist = -1; |
| 1089 |
options->control_persist_timeout = 0; |
| 1062 |
options->hash_known_hosts = -1; |
1090 |
options->hash_known_hosts = -1; |
| 1063 |
options->tun_open = -1; |
1091 |
options->tun_open = -1; |
| 1064 |
options->tun_local = -1; |
1092 |
options->tun_local = -1; |
|
Lines 1189-1194
Link Here
|
| 1189 |
options->server_alive_count_max = 3; |
1217 |
options->server_alive_count_max = 3; |
| 1190 |
if (options->control_master == -1) |
1218 |
if (options->control_master == -1) |
| 1191 |
options->control_master = 0; |
1219 |
options->control_master = 0; |
|
|
1220 |
if (options->control_persist == -1) { |
| 1221 |
options->control_persist = 0; |
| 1222 |
options->control_persist_timeout = 0; |
| 1223 |
} |
| 1192 |
if (options->hash_known_hosts == -1) |
1224 |
if (options->hash_known_hosts == -1) |
| 1193 |
options->hash_known_hosts = 0; |
1225 |
options->hash_known_hosts = 0; |
| 1194 |
if (options->tun_open == -1) |
1226 |
if (options->tun_open == -1) |