|
Lines 128-134
typedef enum {
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 |
oVisualHostKey, oUseRoaming, oZeroKnowledgePasswordAuthentication, |
134 |
oVisualHostKey, oUseRoaming, oZeroKnowledgePasswordAuthentication, |
| 134 |
oDeprecated, oUnsupported |
135 |
oDeprecated, oUnsupported |
|
Lines 224-229
static struct {
Link Here
|
| 224 |
{ "sendenv", oSendEnv }, |
225 |
{ "sendenv", oSendEnv }, |
| 225 |
{ "controlpath", oControlPath }, |
226 |
{ "controlpath", oControlPath }, |
| 226 |
{ "controlmaster", oControlMaster }, |
227 |
{ "controlmaster", oControlMaster }, |
|
|
228 |
{ "controlpersist", oControlPersist }, |
| 227 |
{ "hashknownhosts", oHashKnownHosts }, |
229 |
{ "hashknownhosts", oHashKnownHosts }, |
| 228 |
{ "tunnel", oTunnel }, |
230 |
{ "tunnel", oTunnel }, |
| 229 |
{ "tunneldevice", oTunnelDevice }, |
231 |
{ "tunneldevice", oTunnelDevice }, |
|
Lines 866-871
parse_int:
Link Here
|
| 866 |
*intptr = value; |
868 |
*intptr = value; |
| 867 |
break; |
869 |
break; |
| 868 |
|
870 |
|
|
|
871 |
case oControlPersist: |
| 872 |
/* no/false/yes/true, or a time spec */ |
| 873 |
intptr = &options->control_persist; |
| 874 |
arg = strdelim(&s); |
| 875 |
if (!arg || *arg == '\0') |
| 876 |
fatal("%.200s line %d: Missing ControlPersist" |
| 877 |
" argument.", filename, linenum); |
| 878 |
value = 0; /* To avoid compiler warning... */ |
| 879 |
value2 = 0; /* timeout */ |
| 880 |
if (strcmp(arg, "no") == 0 || strcmp(arg, "false") == 0) |
| 881 |
value = 0; |
| 882 |
else if (strcmp(arg, "yes") == 0 || strcmp(arg, "true") == 0) |
| 883 |
value = 1; |
| 884 |
else if ((value2 = convtime(arg)) >= 0) |
| 885 |
value = 1; |
| 886 |
else |
| 887 |
fatal("%.200s line %d: Bad ControlPersist argument.", |
| 888 |
filename, linenum); |
| 889 |
if (*activep && *intptr == -1) { |
| 890 |
*intptr = value; |
| 891 |
options->control_persist_timeout = value2; |
| 892 |
} |
| 893 |
break; |
| 894 |
|
| 869 |
case oHashKnownHosts: |
895 |
case oHashKnownHosts: |
| 870 |
intptr = &options->hash_known_hosts; |
896 |
intptr = &options->hash_known_hosts; |
| 871 |
goto parse_flag; |
897 |
goto parse_flag; |
|
Lines 1064-1069
initialize_options(Options * options)
Link Here
|
| 1064 |
options->num_send_env = 0; |
1090 |
options->num_send_env = 0; |
| 1065 |
options->control_path = NULL; |
1091 |
options->control_path = NULL; |
| 1066 |
options->control_master = -1; |
1092 |
options->control_master = -1; |
|
|
1093 |
options->control_persist = -1; |
| 1094 |
options->control_persist_timeout = 0; |
| 1067 |
options->hash_known_hosts = -1; |
1095 |
options->hash_known_hosts = -1; |
| 1068 |
options->tun_open = -1; |
1096 |
options->tun_open = -1; |
| 1069 |
options->tun_local = -1; |
1097 |
options->tun_local = -1; |
|
Lines 1197-1202
fill_default_options(Options * options)
Link Here
|
| 1197 |
options->server_alive_count_max = 3; |
1225 |
options->server_alive_count_max = 3; |
| 1198 |
if (options->control_master == -1) |
1226 |
if (options->control_master == -1) |
| 1199 |
options->control_master = 0; |
1227 |
options->control_master = 0; |
|
|
1228 |
if (options->control_persist == -1) { |
| 1229 |
options->control_persist = 0; |
| 1230 |
options->control_persist_timeout = 0; |
| 1231 |
} |
| 1200 |
if (options->hash_known_hosts == -1) |
1232 |
if (options->hash_known_hosts == -1) |
| 1201 |
options->hash_known_hosts = 0; |
1233 |
options->hash_known_hosts = 0; |
| 1202 |
if (options->tun_open == -1) |
1234 |
if (options->tun_open == -1) |