|
Lines 89-94
initialize_server_options(ServerOptions
Link Here
|
| 89 |
options->max_startups_begin = -1; |
89 |
options->max_startups_begin = -1; |
| 90 |
options->max_startups_rate = -1; |
90 |
options->max_startups_rate = -1; |
| 91 |
options->max_startups = -1; |
91 |
options->max_startups = -1; |
|
|
92 |
options->max_authtries = -1; |
| 93 |
options->max_authtries_log = -1; |
| 92 |
options->banner = NULL; |
94 |
options->banner = NULL; |
| 93 |
options->use_dns = -1; |
95 |
options->use_dns = -1; |
| 94 |
options->client_alive_interval = -1; |
96 |
options->client_alive_interval = -1; |
|
Lines 202-207
fill_default_server_options(ServerOption
Link Here
|
| 202 |
options->max_startups_rate = 100; /* 100% */ |
204 |
options->max_startups_rate = 100; /* 100% */ |
| 203 |
if (options->max_startups_begin == -1) |
205 |
if (options->max_startups_begin == -1) |
| 204 |
options->max_startups_begin = options->max_startups; |
206 |
options->max_startups_begin = options->max_startups; |
|
|
207 |
if (options->max_authtries == -1) |
| 208 |
options->max_authtries = DEFAULT_AUTH_FAIL_MAX; |
| 209 |
if (options->max_authtries_log == -1) |
| 210 |
options->max_authtries_log = options->max_authtries / 2; |
| 205 |
if (options->use_dns == -1) |
211 |
if (options->use_dns == -1) |
| 206 |
options->use_dns = 1; |
212 |
options->use_dns = 1; |
| 207 |
if (options->client_alive_interval == -1) |
213 |
if (options->client_alive_interval == -1) |
|
Lines 239-245
typedef enum {
Link Here
|
| 239 |
sPermitUserEnvironment, sUseLogin, sAllowTcpForwarding, sCompression, |
245 |
sPermitUserEnvironment, sUseLogin, sAllowTcpForwarding, sCompression, |
| 240 |
sAllowUsers, sDenyUsers, sAllowGroups, sDenyGroups, |
246 |
sAllowUsers, sDenyUsers, sAllowGroups, sDenyGroups, |
| 241 |
sIgnoreUserKnownHosts, sCiphers, sMacs, sProtocol, sPidFile, |
247 |
sIgnoreUserKnownHosts, sCiphers, sMacs, sProtocol, sPidFile, |
| 242 |
sGatewayPorts, sPubkeyAuthentication, sXAuthLocation, sSubsystem, sMaxStartups, |
248 |
sGatewayPorts, sPubkeyAuthentication, sXAuthLocation, sSubsystem, |
|
|
249 |
sMaxStartups, sMaxAuthTries, sMaxAuthTriesLog, |
| 243 |
sBanner, sUseDNS, sHostbasedAuthentication, |
250 |
sBanner, sUseDNS, sHostbasedAuthentication, |
| 244 |
sHostbasedUsesNameFromPacketOnly, sClientAliveInterval, |
251 |
sHostbasedUsesNameFromPacketOnly, sClientAliveInterval, |
| 245 |
sClientAliveCountMax, sAuthorizedKeysFile, sAuthorizedKeysFile2, |
252 |
sClientAliveCountMax, sAuthorizedKeysFile, sAuthorizedKeysFile2, |
|
Lines 322-327
static struct {
Link Here
|
| 322 |
{ "gatewayports", sGatewayPorts }, |
329 |
{ "gatewayports", sGatewayPorts }, |
| 323 |
{ "subsystem", sSubsystem }, |
330 |
{ "subsystem", sSubsystem }, |
| 324 |
{ "maxstartups", sMaxStartups }, |
331 |
{ "maxstartups", sMaxStartups }, |
|
|
332 |
{ "maxauthtries", sMaxAuthTries }, |
| 333 |
{ "maxauthtrieslog", sMaxAuthTriesLog }, |
| 325 |
{ "banner", sBanner }, |
334 |
{ "banner", sBanner }, |
| 326 |
{ "usedns", sUseDNS }, |
335 |
{ "usedns", sUseDNS }, |
| 327 |
{ "verifyreversemapping", sDeprecated }, |
336 |
{ "verifyreversemapping", sDeprecated }, |
|
Lines 827-832
parse_flag:
Link Here
|
| 827 |
else |
836 |
else |
| 828 |
options->max_startups = options->max_startups_begin; |
837 |
options->max_startups = options->max_startups_begin; |
| 829 |
break; |
838 |
break; |
|
|
839 |
|
| 840 |
case sMaxAuthTries: |
| 841 |
intptr = &options->max_authtries; |
| 842 |
goto parse_int; |
| 843 |
|
| 844 |
case sMaxAuthTriesLog: |
| 845 |
intptr = &options->max_authtries_log; |
| 846 |
goto parse_int; |
| 830 |
|
847 |
|
| 831 |
case sBanner: |
848 |
case sBanner: |
| 832 |
charptr = &options->banner; |
849 |
charptr = &options->banner; |