Lines 172-177
initialize_server_options(ServerOptions *options)
Link Here
|
172 |
options->max_sessions = -1; |
172 |
options->max_sessions = -1; |
173 |
options->banner = NULL; |
173 |
options->banner = NULL; |
174 |
options->use_dns = -1; |
174 |
options->use_dns = -1; |
|
|
175 |
options->use_blacklist = -1; |
175 |
options->client_alive_interval = -1; |
176 |
options->client_alive_interval = -1; |
176 |
options->client_alive_count_max = -1; |
177 |
options->client_alive_count_max = -1; |
177 |
options->num_authkeys_files = 0; |
178 |
options->num_authkeys_files = 0; |
Lines 410-415
fill_default_server_options(ServerOptions *options)
Link Here
|
410 |
options->max_sessions = DEFAULT_SESSIONS_MAX; |
411 |
options->max_sessions = DEFAULT_SESSIONS_MAX; |
411 |
if (options->use_dns == -1) |
412 |
if (options->use_dns == -1) |
412 |
options->use_dns = 0; |
413 |
options->use_dns = 0; |
|
|
414 |
if (options->use_blacklist == -1) |
415 |
options->use_blacklist = 0; |
413 |
if (options->client_alive_interval == -1) |
416 |
if (options->client_alive_interval == -1) |
414 |
options->client_alive_interval = 0; |
417 |
options->client_alive_interval = 0; |
415 |
if (options->client_alive_count_max == -1) |
418 |
if (options->client_alive_count_max == -1) |
Lines 506-511
typedef enum {
Link Here
|
506 |
sGatewayPorts, sPubkeyAuthentication, sPubkeyAcceptedAlgorithms, |
509 |
sGatewayPorts, sPubkeyAuthentication, sPubkeyAcceptedAlgorithms, |
507 |
sXAuthLocation, sSubsystem, sMaxStartups, sMaxAuthTries, sMaxSessions, |
510 |
sXAuthLocation, sSubsystem, sMaxStartups, sMaxAuthTries, sMaxSessions, |
508 |
sBanner, sUseDNS, sHostbasedAuthentication, |
511 |
sBanner, sUseDNS, sHostbasedAuthentication, |
|
|
512 |
sUseBlacklist, |
509 |
sHostbasedUsesNameFromPacketOnly, sHostbasedAcceptedAlgorithms, |
513 |
sHostbasedUsesNameFromPacketOnly, sHostbasedAcceptedAlgorithms, |
510 |
sHostKeyAlgorithms, sPerSourceMaxStartups, sPerSourceNetBlockSize, |
514 |
sHostKeyAlgorithms, sPerSourceMaxStartups, sPerSourceNetBlockSize, |
511 |
sClientAliveInterval, sClientAliveCountMax, sAuthorizedKeysFile, |
515 |
sClientAliveInterval, sClientAliveCountMax, sAuthorizedKeysFile, |
Lines 642-647
static struct {
Link Here
|
642 |
{ "maxsessions", sMaxSessions, SSHCFG_ALL }, |
646 |
{ "maxsessions", sMaxSessions, SSHCFG_ALL }, |
643 |
{ "banner", sBanner, SSHCFG_ALL }, |
647 |
{ "banner", sBanner, SSHCFG_ALL }, |
644 |
{ "usedns", sUseDNS, SSHCFG_GLOBAL }, |
648 |
{ "usedns", sUseDNS, SSHCFG_GLOBAL }, |
|
|
649 |
{ "useblacklist", sUseBlacklist, SSHCFG_GLOBAL }, |
650 |
{ "useblocklist", sUseBlacklist, SSHCFG_GLOBAL } /* alias */, |
645 |
{ "verifyreversemapping", sDeprecated, SSHCFG_GLOBAL }, |
651 |
{ "verifyreversemapping", sDeprecated, SSHCFG_GLOBAL }, |
646 |
{ "reversemappingcheck", sDeprecated, SSHCFG_GLOBAL }, |
652 |
{ "reversemappingcheck", sDeprecated, SSHCFG_GLOBAL }, |
647 |
{ "clientaliveinterval", sClientAliveInterval, SSHCFG_ALL }, |
653 |
{ "clientaliveinterval", sClientAliveInterval, SSHCFG_ALL }, |
Lines 1692-1697
process_server_config_line_depth(ServerOptions *option
Link Here
|
1692 |
intptr = &options->use_dns; |
1698 |
intptr = &options->use_dns; |
1693 |
goto parse_flag; |
1699 |
goto parse_flag; |
1694 |
|
1700 |
|
|
|
1701 |
case sUseBlacklist: |
1702 |
intptr = &options->use_blacklist; |
1703 |
goto parse_flag; |
1704 |
|
1695 |
case sLogFacility: |
1705 |
case sLogFacility: |
1696 |
log_facility_ptr = &options->log_facility; |
1706 |
log_facility_ptr = &options->log_facility; |
1697 |
arg = strdelim(&cp); |
1707 |
arg = strdelim(&cp); |
Lines 2872-2877
dump_config(ServerOptions *o)
Link Here
|
2872 |
dump_cfg_fmtint(sCompression, o->compression); |
2882 |
dump_cfg_fmtint(sCompression, o->compression); |
2873 |
dump_cfg_fmtint(sGatewayPorts, o->fwd_opts.gateway_ports); |
2883 |
dump_cfg_fmtint(sGatewayPorts, o->fwd_opts.gateway_ports); |
2874 |
dump_cfg_fmtint(sUseDNS, o->use_dns); |
2884 |
dump_cfg_fmtint(sUseDNS, o->use_dns); |
|
|
2885 |
dump_cfg_fmtint(sUseBlacklist, o->use_blacklist); |
2875 |
dump_cfg_fmtint(sAllowTcpForwarding, o->allow_tcp_forwarding); |
2886 |
dump_cfg_fmtint(sAllowTcpForwarding, o->allow_tcp_forwarding); |
2876 |
dump_cfg_fmtint(sAllowAgentForwarding, o->allow_agent_forwarding); |
2887 |
dump_cfg_fmtint(sAllowAgentForwarding, o->allow_agent_forwarding); |
2877 |
dump_cfg_fmtint(sDisableForwarding, o->disable_forwarding); |
2888 |
dump_cfg_fmtint(sDisableForwarding, o->disable_forwarding); |