version 1.231, 2012/10/30 21:29:54 |
version 1.232, 2012/11/04 11:09:15 |
|
|
#include "groupaccess.h" |
#include "groupaccess.h" |
#include "canohost.h" |
#include "canohost.h" |
#include "packet.h" |
#include "packet.h" |
|
#include "hostfile.h" |
|
#include "auth.h" |
|
|
static void add_listen_addr(ServerOptions *, char *, int); |
static void add_listen_addr(ServerOptions *, char *, int); |
static void add_one_listen_addr(ServerOptions *, char *, int); |
static void add_one_listen_addr(ServerOptions *, char *, int); |
|
|
sRevokedKeys, sTrustedUserCAKeys, sAuthorizedPrincipalsFile, |
sRevokedKeys, sTrustedUserCAKeys, sAuthorizedPrincipalsFile, |
sKexAlgorithms, sIPQoS, sVersionAddendum, |
sKexAlgorithms, sIPQoS, sVersionAddendum, |
sAuthorizedKeysCommand, sAuthorizedKeysCommandUser, |
sAuthorizedKeysCommand, sAuthorizedKeysCommandUser, |
|
sAuthenticationMethods, |
sDeprecated, sUnsupported |
sDeprecated, sUnsupported |
} ServerOpCodes; |
} ServerOpCodes; |
|
|
|
|
{ "authorizedkeyscommand", sAuthorizedKeysCommand, SSHCFG_ALL }, |
{ "authorizedkeyscommand", sAuthorizedKeysCommand, SSHCFG_ALL }, |
{ "authorizedkeyscommanduser", sAuthorizedKeysCommandUser, SSHCFG_ALL }, |
{ "authorizedkeyscommanduser", sAuthorizedKeysCommandUser, SSHCFG_ALL }, |
{ "versionaddendum", sVersionAddendum, SSHCFG_GLOBAL }, |
{ "versionaddendum", sVersionAddendum, SSHCFG_GLOBAL }, |
|
{ "authenticationmethods", sAuthenticationMethods, SSHCFG_ALL }, |
{ NULL, sBadOption, 0 } |
{ NULL, sBadOption, 0 } |
}; |
}; |
|
|
|
|
*charptr = xstrdup(arg); |
*charptr = xstrdup(arg); |
break; |
break; |
|
|
|
case sAuthenticationMethods: |
|
if (*activep && options->num_auth_methods == 0) { |
|
while ((arg = strdelim(&cp)) && *arg != '\0') { |
|
if (options->num_auth_methods >= |
|
MAX_AUTH_METHODS) |
|
fatal("%s line %d: " |
|
"too many authentication methods.", |
|
filename, linenum); |
|
if (auth2_methods_valid(arg, 0) != 0) |
|
fatal("%s line %d: invalid " |
|
"authentication method list.", |
|
filename, linenum); |
|
options->auth_methods[ |
|
options->num_auth_methods++] = xstrdup(arg); |
|
} |
|
} |
|
return 0; |
|
|
case sDeprecated: |
case sDeprecated: |
logit("%s line %d: Deprecated option %s", |
logit("%s line %d: Deprecated option %s", |
filename, linenum, arg); |
filename, linenum, arg); |
|
|
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_oneline(sAuthenticationMethods, |
|
o->num_auth_methods, o->auth_methods); |
|
|
/* other arguments */ |
/* other arguments */ |
for (i = 0; i < o->num_subsystems; i++) |
for (i = 0; i < o->num_subsystems; i++) |