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