|
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; |
| 92 |
options->banner = NULL; |
93 |
options->banner = NULL; |
| 93 |
options->use_dns = -1; |
94 |
options->use_dns = -1; |
| 94 |
options->client_alive_interval = -1; |
95 |
options->client_alive_interval = -1; |
|
Lines 199-204
fill_default_server_options(ServerOption
Link Here
|
| 199 |
options->max_startups_rate = 100; /* 100% */ |
200 |
options->max_startups_rate = 100; /* 100% */ |
| 200 |
if (options->max_startups_begin == -1) |
201 |
if (options->max_startups_begin == -1) |
| 201 |
options->max_startups_begin = options->max_startups; |
202 |
options->max_startups_begin = options->max_startups; |
|
|
203 |
if (options->max_authtries == -1) |
| 204 |
options->max_authtries = 6; |
| 202 |
if (options->use_dns == -1) |
205 |
if (options->use_dns == -1) |
| 203 |
options->use_dns = 1; |
206 |
options->use_dns = 1; |
| 204 |
if (options->client_alive_interval == -1) |
207 |
if (options->client_alive_interval == -1) |
|
Lines 235-241
typedef enum {
Link Here
|
| 235 |
sPermitUserEnvironment, sUseLogin, sAllowTcpForwarding, sCompression, |
238 |
sPermitUserEnvironment, sUseLogin, sAllowTcpForwarding, sCompression, |
| 236 |
sAllowUsers, sDenyUsers, sAllowGroups, sDenyGroups, |
239 |
sAllowUsers, sDenyUsers, sAllowGroups, sDenyGroups, |
| 237 |
sIgnoreUserKnownHosts, sCiphers, sMacs, sProtocol, sPidFile, |
240 |
sIgnoreUserKnownHosts, sCiphers, sMacs, sProtocol, sPidFile, |
| 238 |
sGatewayPorts, sPubkeyAuthentication, sXAuthLocation, sSubsystem, sMaxStartups, |
241 |
sGatewayPorts, sPubkeyAuthentication, sXAuthLocation, sSubsystem, |
|
|
242 |
sMaxStartups, sMaxAuthTries, |
| 239 |
sBanner, sUseDNS, sHostbasedAuthentication, |
243 |
sBanner, sUseDNS, sHostbasedAuthentication, |
| 240 |
sHostbasedUsesNameFromPacketOnly, sClientAliveInterval, |
244 |
sHostbasedUsesNameFromPacketOnly, sClientAliveInterval, |
| 241 |
sClientAliveCountMax, sAuthorizedKeysFile, sAuthorizedKeysFile2, |
245 |
sClientAliveCountMax, sAuthorizedKeysFile, sAuthorizedKeysFile2, |
|
Lines 315-320
static struct {
Link Here
|
| 315 |
{ "gatewayports", sGatewayPorts }, |
319 |
{ "gatewayports", sGatewayPorts }, |
| 316 |
{ "subsystem", sSubsystem }, |
320 |
{ "subsystem", sSubsystem }, |
| 317 |
{ "maxstartups", sMaxStartups }, |
321 |
{ "maxstartups", sMaxStartups }, |
|
|
322 |
{ "maxauthtries", sMaxAuthTries }, |
| 318 |
{ "banner", sBanner }, |
323 |
{ "banner", sBanner }, |
| 319 |
{ "usedns", sUseDNS }, |
324 |
{ "usedns", sUseDNS }, |
| 320 |
{ "verifyreversemapping", sDeprecated }, |
325 |
{ "verifyreversemapping", sDeprecated }, |
|
Lines 815-820
parse_flag:
Link Here
|
| 815 |
else |
820 |
else |
| 816 |
options->max_startups = options->max_startups_begin; |
821 |
options->max_startups = options->max_startups_begin; |
| 817 |
break; |
822 |
break; |
|
|
823 |
|
| 824 |
case sMaxAuthTries: |
| 825 |
intptr = &options->max_authtries; |
| 826 |
goto parse_int; |
| 818 |
|
827 |
|
| 819 |
case sBanner: |
828 |
case sBanner: |
| 820 |
charptr = &options->banner; |
829 |
charptr = &options->banner; |