|
Lines 117-122
initialize_server_options(ServerOptions
Link Here
|
| 117 |
options->max_authtries = -1; |
117 |
options->max_authtries = -1; |
| 118 |
options->max_sessions = -1; |
118 |
options->max_sessions = -1; |
| 119 |
options->banner = NULL; |
119 |
options->banner = NULL; |
|
|
120 |
options->show_patchlevel = -1; |
| 120 |
options->use_dns = -1; |
121 |
options->use_dns = -1; |
| 121 |
options->client_alive_interval = -1; |
122 |
options->client_alive_interval = -1; |
| 122 |
options->client_alive_count_max = -1; |
123 |
options->client_alive_count_max = -1; |
|
Lines 262-267
fill_default_server_options(ServerOption
Link Here
|
| 262 |
if (options->zero_knowledge_password_authentication == -1) |
263 |
if (options->zero_knowledge_password_authentication == -1) |
| 263 |
options->zero_knowledge_password_authentication = 0; |
264 |
options->zero_knowledge_password_authentication = 0; |
| 264 |
|
265 |
|
|
|
266 |
if (options->show_patchlevel == -1) |
| 267 |
options->show_patchlevel = 0; |
| 268 |
|
| 265 |
/* Turn privilege separation on by default */ |
269 |
/* Turn privilege separation on by default */ |
| 266 |
if (use_privsep == -1) |
270 |
if (use_privsep == -1) |
| 267 |
use_privsep = 1; |
271 |
use_privsep = 1; |
|
Lines 299-305
typedef enum {
Link Here
|
| 299 |
sIgnoreUserKnownHosts, sCiphers, sMacs, sProtocol, sPidFile, |
303 |
sIgnoreUserKnownHosts, sCiphers, sMacs, sProtocol, sPidFile, |
| 300 |
sGatewayPorts, sPubkeyAuthentication, sXAuthLocation, sSubsystem, |
304 |
sGatewayPorts, sPubkeyAuthentication, sXAuthLocation, sSubsystem, |
| 301 |
sMaxStartups, sMaxAuthTries, sMaxSessions, |
305 |
sMaxStartups, sMaxAuthTries, sMaxSessions, |
| 302 |
sBanner, sUseDNS, sHostbasedAuthentication, |
306 |
sBanner, sShowPatchLevel, sUseDNS, sHostbasedAuthentication, |
| 303 |
sHostbasedUsesNameFromPacketOnly, sClientAliveInterval, |
307 |
sHostbasedUsesNameFromPacketOnly, sClientAliveInterval, |
| 304 |
sClientAliveCountMax, sAuthorizedKeysFile, sAuthorizedKeysFile2, |
308 |
sClientAliveCountMax, sAuthorizedKeysFile, sAuthorizedKeysFile2, |
| 305 |
sGssAuthentication, sGssCleanupCreds, sAcceptEnv, sPermitTunnel, |
309 |
sGssAuthentication, sGssCleanupCreds, sAcceptEnv, sPermitTunnel, |
|
Lines 410-415
static struct {
Link Here
|
| 410 |
{ "maxauthtries", sMaxAuthTries, SSHCFG_ALL }, |
414 |
{ "maxauthtries", sMaxAuthTries, SSHCFG_ALL }, |
| 411 |
{ "maxsessions", sMaxSessions, SSHCFG_ALL }, |
415 |
{ "maxsessions", sMaxSessions, SSHCFG_ALL }, |
| 412 |
{ "banner", sBanner, SSHCFG_ALL }, |
416 |
{ "banner", sBanner, SSHCFG_ALL }, |
|
|
417 |
{ "showpatchlevel", sShowPatchLevel, SSHCFG_GLOBAL }, |
| 413 |
{ "usedns", sUseDNS, SSHCFG_GLOBAL }, |
418 |
{ "usedns", sUseDNS, SSHCFG_GLOBAL }, |
| 414 |
{ "verifyreversemapping", sDeprecated, SSHCFG_GLOBAL }, |
419 |
{ "verifyreversemapping", sDeprecated, SSHCFG_GLOBAL }, |
| 415 |
{ "reversemappingcheck", sDeprecated, SSHCFG_GLOBAL }, |
420 |
{ "reversemappingcheck", sDeprecated, SSHCFG_GLOBAL }, |
|
Lines 1033-1038
process_server_config_line(ServerOptions
Link Here
|
| 1033 |
intptr = &use_privsep; |
1038 |
intptr = &use_privsep; |
| 1034 |
goto parse_flag; |
1039 |
goto parse_flag; |
| 1035 |
|
1040 |
|
|
|
1041 |
case sShowPatchLevel: |
| 1042 |
intptr = &options->show_patchlevel; |
| 1043 |
goto parse_flag; |
| 1044 |
|
| 1036 |
case sAllowUsers: |
1045 |
case sAllowUsers: |
| 1037 |
while ((arg = strdelim(&cp)) && *arg != '\0') { |
1046 |
while ((arg = strdelim(&cp)) && *arg != '\0') { |
| 1038 |
if (options->num_allow_users >= MAX_ALLOW_USERS) |
1047 |
if (options->num_allow_users >= MAX_ALLOW_USERS) |
|
Lines 1613-1618
dump_config(ServerOptions *o)
Link Here
|
| 1613 |
dump_cfg_fmtint(sUseLogin, o->use_login); |
1622 |
dump_cfg_fmtint(sUseLogin, o->use_login); |
| 1614 |
dump_cfg_fmtint(sCompression, o->compression); |
1623 |
dump_cfg_fmtint(sCompression, o->compression); |
| 1615 |
dump_cfg_fmtint(sGatewayPorts, o->gateway_ports); |
1624 |
dump_cfg_fmtint(sGatewayPorts, o->gateway_ports); |
|
|
1625 |
dump_cfg_fmtint(sShowPatchLevel, o->show_patchlevel); |
| 1616 |
dump_cfg_fmtint(sUseDNS, o->use_dns); |
1626 |
dump_cfg_fmtint(sUseDNS, o->use_dns); |
| 1617 |
dump_cfg_fmtint(sAllowTcpForwarding, o->allow_tcp_forwarding); |
1627 |
dump_cfg_fmtint(sAllowTcpForwarding, o->allow_tcp_forwarding); |
| 1618 |
dump_cfg_fmtint(sUsePrivilegeSeparation, use_privsep); |
1628 |
dump_cfg_fmtint(sUsePrivilegeSeparation, use_privsep); |