version 1.289, 2018/06/06 18:29:18 |
version 1.290, 2018/06/09 03:01:12 |
|
|
oEnableSSHKeysign, oRekeyLimit, oVerifyHostKeyDNS, oConnectTimeout, |
oEnableSSHKeysign, oRekeyLimit, oVerifyHostKeyDNS, oConnectTimeout, |
oAddressFamily, oGssAuthentication, oGssDelegateCreds, |
oAddressFamily, oGssAuthentication, oGssDelegateCreds, |
oServerAliveInterval, oServerAliveCountMax, oIdentitiesOnly, |
oServerAliveInterval, oServerAliveCountMax, oIdentitiesOnly, |
oSendEnv, oControlPath, oControlMaster, oControlPersist, |
oSendEnv, oSetEnv, oControlPath, oControlMaster, oControlPersist, |
oHashKnownHosts, |
oHashKnownHosts, |
oTunnel, oTunnelDevice, |
oTunnel, oTunnelDevice, |
oLocalCommand, oPermitLocalCommand, oRemoteCommand, |
oLocalCommand, oPermitLocalCommand, oRemoteCommand, |
|
|
{ "serveraliveinterval", oServerAliveInterval }, |
{ "serveraliveinterval", oServerAliveInterval }, |
{ "serveralivecountmax", oServerAliveCountMax }, |
{ "serveralivecountmax", oServerAliveCountMax }, |
{ "sendenv", oSendEnv }, |
{ "sendenv", oSendEnv }, |
|
{ "setenv", oSetEnv }, |
{ "controlpath", oControlPath }, |
{ "controlpath", oControlPath }, |
{ "controlmaster", oControlMaster }, |
{ "controlmaster", oControlMaster }, |
{ "controlpersist", oControlPersist }, |
{ "controlpersist", oControlPersist }, |
|
|
continue; |
continue; |
} else { |
} else { |
/* Adding an env var */ |
/* Adding an env var */ |
if (options->num_send_env >= MAX_SEND_ENV) |
if (options->num_send_env >= INT_MAX) |
fatal("%s line %d: too many send env.", |
fatal("%s line %d: too many send env.", |
filename, linenum); |
filename, linenum); |
|
options->send_env = xrecallocarray( |
|
options->send_env, options->num_send_env, |
|
options->num_send_env, |
|
sizeof(*options->send_env)); |
options->send_env[options->num_send_env++] = |
options->send_env[options->num_send_env++] = |
xstrdup(arg); |
xstrdup(arg); |
} |
} |
} |
} |
break; |
break; |
|
|
|
case oSetEnv: |
|
value = options->num_setenv; |
|
while ((arg = strdelimw(&s)) != NULL && *arg != '\0') { |
|
if (strchr(arg, '=') == NULL) |
|
fatal("%s line %d: Invalid SetEnv.", |
|
filename, linenum); |
|
if (!*activep || value != 0) |
|
continue; |
|
/* Adding a setenv var */ |
|
if (options->num_setenv >= INT_MAX) |
|
fatal("%s line %d: too many SetEnv.", |
|
filename, linenum); |
|
options->setenv = xrecallocarray( |
|
options->setenv, options->num_setenv, |
|
options->num_setenv + 1, sizeof(*options->setenv)); |
|
options->setenv[options->num_setenv++] = xstrdup(arg); |
|
} |
|
break; |
|
|
case oControlPath: |
case oControlPath: |
charptr = &options->control_path; |
charptr = &options->control_path; |
goto parse_string; |
goto parse_string; |
|
|
options->verify_host_key_dns = -1; |
options->verify_host_key_dns = -1; |
options->server_alive_interval = -1; |
options->server_alive_interval = -1; |
options->server_alive_count_max = -1; |
options->server_alive_count_max = -1; |
|
options->send_env = NULL; |
options->num_send_env = 0; |
options->num_send_env = 0; |
|
options->setenv = NULL; |
|
options->num_setenv = 0; |
options->control_path = NULL; |
options->control_path = NULL; |
options->control_master = -1; |
options->control_master = -1; |
options->control_persist = -1; |
options->control_persist = -1; |
|
|
dump_cfg_strarray_oneline(oGlobalKnownHostsFile, o->num_system_hostfiles, o->system_hostfiles); |
dump_cfg_strarray_oneline(oGlobalKnownHostsFile, o->num_system_hostfiles, o->system_hostfiles); |
dump_cfg_strarray_oneline(oUserKnownHostsFile, o->num_user_hostfiles, o->user_hostfiles); |
dump_cfg_strarray_oneline(oUserKnownHostsFile, o->num_user_hostfiles, o->user_hostfiles); |
dump_cfg_strarray(oSendEnv, o->num_send_env, o->send_env); |
dump_cfg_strarray(oSendEnv, o->num_send_env, o->send_env); |
|
dump_cfg_strarray(oSetEnv, o->num_setenv, o->setenv); |
|
|
/* Special cases */ |
/* Special cases */ |
|
|