|
Lines 96-101
Link Here
|
| 96 |
options->print_lastlog = -1; |
96 |
options->print_lastlog = -1; |
| 97 |
options->x11_forwarding = -1; |
97 |
options->x11_forwarding = -1; |
| 98 |
options->x11_display_offset = -1; |
98 |
options->x11_display_offset = -1; |
|
|
99 |
options->max_displays = -1; |
| 99 |
options->x11_use_localhost = -1; |
100 |
options->x11_use_localhost = -1; |
| 100 |
options->permit_tty = -1; |
101 |
options->permit_tty = -1; |
| 101 |
options->permit_user_rc = -1; |
102 |
options->permit_user_rc = -1; |
|
Lines 327-332
Link Here
|
| 327 |
options->max_authtries = DEFAULT_AUTH_FAIL_MAX; |
328 |
options->max_authtries = DEFAULT_AUTH_FAIL_MAX; |
| 328 |
if (options->max_sessions == -1) |
329 |
if (options->max_sessions == -1) |
| 329 |
options->max_sessions = DEFAULT_SESSIONS_MAX; |
330 |
options->max_sessions = DEFAULT_SESSIONS_MAX; |
|
|
331 |
if (options->max_displays == -1) |
| 332 |
options->max_displays = MAX_DISPLAYS; |
| 330 |
if (options->use_dns == -1) |
333 |
if (options->use_dns == -1) |
| 331 |
options->use_dns = 0; |
334 |
options->use_dns = 0; |
| 332 |
if (options->client_alive_interval == -1) |
335 |
if (options->client_alive_interval == -1) |
|
Lines 429-435
Link Here
|
| 429 |
sAuthorizedKeysCommand, sAuthorizedKeysCommandUser, |
432 |
sAuthorizedKeysCommand, sAuthorizedKeysCommandUser, |
| 430 |
sAuthenticationMethods, sHostKeyAgent, sPermitUserRC, |
433 |
sAuthenticationMethods, sHostKeyAgent, sPermitUserRC, |
| 431 |
sStreamLocalBindMask, sStreamLocalBindUnlink, |
434 |
sStreamLocalBindMask, sStreamLocalBindUnlink, |
| 432 |
sAllowStreamLocalForwarding, sFingerprintHash, |
435 |
sAllowStreamLocalForwarding, sFingerprintHash, sMaxDisplays, |
| 433 |
sDeprecated, sUnsupported |
436 |
sDeprecated, sUnsupported |
| 434 |
} ServerOpCodes; |
437 |
} ServerOpCodes; |
| 435 |
|
438 |
|
|
Lines 572-577
Link Here
|
| 572 |
{ "streamlocalbindunlink", sStreamLocalBindUnlink, SSHCFG_ALL }, |
575 |
{ "streamlocalbindunlink", sStreamLocalBindUnlink, SSHCFG_ALL }, |
| 573 |
{ "allowstreamlocalforwarding", sAllowStreamLocalForwarding, SSHCFG_ALL }, |
576 |
{ "allowstreamlocalforwarding", sAllowStreamLocalForwarding, SSHCFG_ALL }, |
| 574 |
{ "fingerprinthash", sFingerprintHash, SSHCFG_GLOBAL }, |
577 |
{ "fingerprinthash", sFingerprintHash, SSHCFG_GLOBAL }, |
|
|
578 |
{ "maxdisplays", sMaxDisplays, SSHCFG_GLOBAL }, |
| 575 |
{ NULL, sBadOption, 0 } |
579 |
{ NULL, sBadOption, 0 } |
| 576 |
}; |
580 |
}; |
| 577 |
|
581 |
|
|
Lines 1031-1037
Link Here
|
| 1031 |
fatal("%s line %d: Badly formatted port number.", |
1035 |
fatal("%s line %d: Badly formatted port number.", |
| 1032 |
filename, linenum); |
1036 |
filename, linenum); |
| 1033 |
break; |
1037 |
break; |
| 1034 |
|
1038 |
case sMaxDisplays: |
|
|
1039 |
arg = strdelim(&cp); |
| 1040 |
if (!arg || *arg == '\0') |
| 1041 |
fatal("%s line %d: missing value.",filename, linenum); |
| 1042 |
if ((options->max_displays = a2port(arg)) == -1) { |
| 1043 |
error("Invalid MaxDisplays '%s'", arg); |
| 1044 |
return -1; |
| 1045 |
} |
| 1046 |
break; |
| 1035 |
case sServerKeyBits: |
1047 |
case sServerKeyBits: |
| 1036 |
intptr = &options->server_key_bits; |
1048 |
intptr = &options->server_key_bits; |
| 1037 |
parse_int: |
1049 |
parse_int: |
|
Lines 2001-2006
Link Here
|
| 2001 |
M_CP_INTOPT(permit_tty); |
2013 |
M_CP_INTOPT(permit_tty); |
| 2002 |
M_CP_INTOPT(permit_user_rc); |
2014 |
M_CP_INTOPT(permit_user_rc); |
| 2003 |
M_CP_INTOPT(max_sessions); |
2015 |
M_CP_INTOPT(max_sessions); |
|
|
2016 |
M_CP_INTOPT(max_displays); |
| 2004 |
M_CP_INTOPT(max_authtries); |
2017 |
M_CP_INTOPT(max_authtries); |
| 2005 |
M_CP_INTOPT(ip_qos_interactive); |
2018 |
M_CP_INTOPT(ip_qos_interactive); |
| 2006 |
M_CP_INTOPT(ip_qos_bulk); |
2019 |
M_CP_INTOPT(ip_qos_bulk); |
|
Lines 2254-2259
Link Here
|
| 2254 |
dump_cfg_int(sX11DisplayOffset, o->x11_display_offset); |
2267 |
dump_cfg_int(sX11DisplayOffset, o->x11_display_offset); |
| 2255 |
dump_cfg_int(sMaxAuthTries, o->max_authtries); |
2268 |
dump_cfg_int(sMaxAuthTries, o->max_authtries); |
| 2256 |
dump_cfg_int(sMaxSessions, o->max_sessions); |
2269 |
dump_cfg_int(sMaxSessions, o->max_sessions); |
|
|
2270 |
dump_cfg_int(sMaxDisplays, o->max_displays); |
| 2257 |
dump_cfg_int(sClientAliveInterval, o->client_alive_interval); |
2271 |
dump_cfg_int(sClientAliveInterval, o->client_alive_interval); |
| 2258 |
dump_cfg_int(sClientAliveCountMax, o->client_alive_count_max); |
2272 |
dump_cfg_int(sClientAliveCountMax, o->client_alive_count_max); |
| 2259 |
dump_cfg_oct(sStreamLocalBindMask, o->fwd_opts.streamlocal_bind_mask); |
2273 |
dump_cfg_oct(sStreamLocalBindMask, o->fwd_opts.streamlocal_bind_mask); |