version 1.331, 2018/06/06 18:29:18 |
version 1.332, 2018/06/09 03:03:10 |
|
|
options->client_alive_count_max = -1; |
options->client_alive_count_max = -1; |
options->num_authkeys_files = 0; |
options->num_authkeys_files = 0; |
options->num_accept_env = 0; |
options->num_accept_env = 0; |
|
options->num_setenv = 0; |
options->permit_tun = -1; |
options->permit_tun = -1; |
options->permitted_opens = NULL; |
options->permitted_opens = NULL; |
options->permitted_listens = NULL; |
options->permitted_listens = NULL; |
|
|
sHostKeyAlgorithms, |
sHostKeyAlgorithms, |
sClientAliveInterval, sClientAliveCountMax, sAuthorizedKeysFile, |
sClientAliveInterval, sClientAliveCountMax, sAuthorizedKeysFile, |
sGssAuthentication, sGssCleanupCreds, sGssStrictAcceptor, |
sGssAuthentication, sGssCleanupCreds, sGssStrictAcceptor, |
sAcceptEnv, sPermitTunnel, |
sAcceptEnv, sSetEnv, sPermitTunnel, |
sMatch, sPermitOpen, sPermitListen, sForceCommand, sChrootDirectory, |
sMatch, sPermitOpen, sPermitListen, sForceCommand, sChrootDirectory, |
sUsePrivilegeSeparation, sAllowAgentForwarding, |
sUsePrivilegeSeparation, sAllowAgentForwarding, |
sHostCertificate, |
sHostCertificate, |
|
|
{ "authorizedkeysfile2", sDeprecated, SSHCFG_ALL }, |
{ "authorizedkeysfile2", sDeprecated, SSHCFG_ALL }, |
{ "useprivilegeseparation", sDeprecated, SSHCFG_GLOBAL}, |
{ "useprivilegeseparation", sDeprecated, SSHCFG_GLOBAL}, |
{ "acceptenv", sAcceptEnv, SSHCFG_ALL }, |
{ "acceptenv", sAcceptEnv, SSHCFG_ALL }, |
|
{ "setenv", sSetEnv, SSHCFG_ALL }, |
{ "permittunnel", sPermitTunnel, SSHCFG_ALL }, |
{ "permittunnel", sPermitTunnel, SSHCFG_ALL }, |
{ "permittty", sPermitTTY, SSHCFG_ALL }, |
{ "permittty", sPermitTTY, SSHCFG_ALL }, |
{ "permituserrc", sPermitUserRC, SSHCFG_ALL }, |
{ "permituserrc", sPermitUserRC, SSHCFG_ALL }, |
|
|
} |
} |
break; |
break; |
|
|
|
case sSetEnv: |
|
uvalue = options->num_setenv; |
|
while ((arg = strdelimw(&cp)) && *arg != '\0') { |
|
if (strchr(arg, '=') == NULL) |
|
fatal("%s line %d: Invalid environment.", |
|
filename, linenum); |
|
if (!*activep || uvalue != 0) |
|
continue; |
|
array_append(filename, linenum, "SetEnv", |
|
&options->setenv, &options->num_setenv, arg); |
|
} |
|
break; |
|
|
case sPermitTunnel: |
case sPermitTunnel: |
intptr = &options->permit_tun; |
intptr = &options->permit_tun; |
arg = strdelim(&cp); |
arg = strdelim(&cp); |
|
|
dump_cfg_strarray(sAllowGroups, o->num_allow_groups, o->allow_groups); |
dump_cfg_strarray(sAllowGroups, o->num_allow_groups, o->allow_groups); |
dump_cfg_strarray(sDenyGroups, o->num_deny_groups, o->deny_groups); |
dump_cfg_strarray(sDenyGroups, o->num_deny_groups, o->deny_groups); |
dump_cfg_strarray(sAcceptEnv, o->num_accept_env, o->accept_env); |
dump_cfg_strarray(sAcceptEnv, o->num_accept_env, o->accept_env); |
|
dump_cfg_strarray(sSetEnv, o->num_setenv, o->setenv); |
dump_cfg_strarray_oneline(sAuthenticationMethods, |
dump_cfg_strarray_oneline(sAuthenticationMethods, |
o->num_auth_methods, o->auth_methods); |
o->num_auth_methods, o->auth_methods); |
|
|