version 1.179, 2008/05/08 12:02:23 |
version 1.180, 2008/05/08 12:21:16 |
|
|
options->max_startups_rate = -1; |
options->max_startups_rate = -1; |
options->max_startups = -1; |
options->max_startups = -1; |
options->max_authtries = -1; |
options->max_authtries = -1; |
|
options->max_sessions = -1; |
options->banner = NULL; |
options->banner = NULL; |
options->use_dns = -1; |
options->use_dns = -1; |
options->client_alive_interval = -1; |
options->client_alive_interval = -1; |
|
|
options->max_startups_begin = options->max_startups; |
options->max_startups_begin = options->max_startups; |
if (options->max_authtries == -1) |
if (options->max_authtries == -1) |
options->max_authtries = DEFAULT_AUTH_FAIL_MAX; |
options->max_authtries = DEFAULT_AUTH_FAIL_MAX; |
|
if (options->max_sessions == -1) |
|
options->max_sessions = DEFAULT_SESSIONS_MAX; |
if (options->use_dns == -1) |
if (options->use_dns == -1) |
options->use_dns = 1; |
options->use_dns = 1; |
if (options->client_alive_interval == -1) |
if (options->client_alive_interval == -1) |
|
|
sAllowUsers, sDenyUsers, sAllowGroups, sDenyGroups, |
sAllowUsers, sDenyUsers, sAllowGroups, sDenyGroups, |
sIgnoreUserKnownHosts, sCiphers, sMacs, sProtocol, sPidFile, |
sIgnoreUserKnownHosts, sCiphers, sMacs, sProtocol, sPidFile, |
sGatewayPorts, sPubkeyAuthentication, sXAuthLocation, sSubsystem, |
sGatewayPorts, sPubkeyAuthentication, sXAuthLocation, sSubsystem, |
sMaxStartups, sMaxAuthTries, |
sMaxStartups, sMaxAuthTries, sMaxSessions, |
sBanner, sUseDNS, sHostbasedAuthentication, |
sBanner, sUseDNS, sHostbasedAuthentication, |
sHostbasedUsesNameFromPacketOnly, sClientAliveInterval, |
sHostbasedUsesNameFromPacketOnly, sClientAliveInterval, |
sClientAliveCountMax, sAuthorizedKeysFile, sAuthorizedKeysFile2, |
sClientAliveCountMax, sAuthorizedKeysFile, sAuthorizedKeysFile2, |
|
|
{ "subsystem", sSubsystem, SSHCFG_GLOBAL }, |
{ "subsystem", sSubsystem, SSHCFG_GLOBAL }, |
{ "maxstartups", sMaxStartups, SSHCFG_GLOBAL }, |
{ "maxstartups", sMaxStartups, SSHCFG_GLOBAL }, |
{ "maxauthtries", sMaxAuthTries, SSHCFG_GLOBAL }, |
{ "maxauthtries", sMaxAuthTries, SSHCFG_GLOBAL }, |
|
{ "maxsessions", sMaxSessions, SSHCFG_ALL }, |
{ "banner", sBanner, SSHCFG_ALL }, |
{ "banner", sBanner, SSHCFG_ALL }, |
{ "usedns", sUseDNS, SSHCFG_GLOBAL }, |
{ "usedns", sUseDNS, SSHCFG_GLOBAL }, |
{ "verifyreversemapping", sDeprecated, SSHCFG_GLOBAL }, |
{ "verifyreversemapping", sDeprecated, SSHCFG_GLOBAL }, |
|
|
|
|
case sServerKeyBits: |
case sServerKeyBits: |
intptr = &options->server_key_bits; |
intptr = &options->server_key_bits; |
parse_int: |
parse_int: |
arg = strdelim(&cp); |
arg = strdelim(&cp); |
if (!arg || *arg == '\0') |
if (!arg || *arg == '\0') |
fatal("%s line %d: missing integer value.", |
fatal("%s line %d: missing integer value.", |
|
|
|
|
case sLoginGraceTime: |
case sLoginGraceTime: |
intptr = &options->login_grace_time; |
intptr = &options->login_grace_time; |
parse_time: |
parse_time: |
arg = strdelim(&cp); |
arg = strdelim(&cp); |
if (!arg || *arg == '\0') |
if (!arg || *arg == '\0') |
fatal("%s line %d: missing time value.", |
fatal("%s line %d: missing time value.", |
|
|
fatal("%s line %d: too many host keys specified (max %d).", |
fatal("%s line %d: too many host keys specified (max %d).", |
filename, linenum, MAX_HOSTKEYS); |
filename, linenum, MAX_HOSTKEYS); |
charptr = &options->host_key_files[*intptr]; |
charptr = &options->host_key_files[*intptr]; |
parse_filename: |
parse_filename: |
arg = strdelim(&cp); |
arg = strdelim(&cp); |
if (!arg || *arg == '\0') |
if (!arg || *arg == '\0') |
fatal("%s line %d: missing file name.", |
fatal("%s line %d: missing file name.", |
|
|
|
|
case sIgnoreRhosts: |
case sIgnoreRhosts: |
intptr = &options->ignore_rhosts; |
intptr = &options->ignore_rhosts; |
parse_flag: |
parse_flag: |
arg = strdelim(&cp); |
arg = strdelim(&cp); |
if (!arg || *arg == '\0') |
if (!arg || *arg == '\0') |
fatal("%s line %d: missing yes/no argument.", |
fatal("%s line %d: missing yes/no argument.", |
|
|
intptr = &options->max_authtries; |
intptr = &options->max_authtries; |
goto parse_int; |
goto parse_int; |
|
|
|
case sMaxSessions: |
|
intptr = &options->max_sessions; |
|
goto parse_int; |
|
|
case sBanner: |
case sBanner: |
charptr = &options->banner; |
charptr = &options->banner; |
goto parse_filename; |
goto parse_filename; |
|
|
M_CP_INTOPT(x11_display_offset); |
M_CP_INTOPT(x11_display_offset); |
M_CP_INTOPT(x11_forwarding); |
M_CP_INTOPT(x11_forwarding); |
M_CP_INTOPT(x11_use_localhost); |
M_CP_INTOPT(x11_use_localhost); |
|
M_CP_INTOPT(max_sessions); |
|
|
M_CP_STROPT(banner); |
M_CP_STROPT(banner); |
if (preauth) |
if (preauth) |