|
Lines 140-145
initialize_server_options(ServerOptions *options)
Link Here
|
| 140 |
options->kex_algorithms = NULL; |
140 |
options->kex_algorithms = NULL; |
| 141 |
options->protocol = SSH_PROTO_UNKNOWN; |
141 |
options->protocol = SSH_PROTO_UNKNOWN; |
| 142 |
options->fwd_opts.gateway_ports = -1; |
142 |
options->fwd_opts.gateway_ports = -1; |
|
|
143 |
options->fwd_opts.gateway_ports_explicit = NULL; |
| 143 |
options->fwd_opts.streamlocal_bind_mask = (mode_t)-1; |
144 |
options->fwd_opts.streamlocal_bind_mask = (mode_t)-1; |
| 144 |
options->fwd_opts.streamlocal_bind_unlink = -1; |
145 |
options->fwd_opts.streamlocal_bind_unlink = -1; |
| 145 |
options->num_subsystems = 0; |
146 |
options->num_subsystems = 0; |
|
Lines 368-373
fill_default_server_options(ServerOptions *options)
Link Here
|
| 368 |
CLEAR_ON_NONE(options->trusted_user_ca_keys); |
369 |
CLEAR_ON_NONE(options->trusted_user_ca_keys); |
| 369 |
CLEAR_ON_NONE(options->revoked_keys_file); |
370 |
CLEAR_ON_NONE(options->revoked_keys_file); |
| 370 |
CLEAR_ON_NONE(options->authorized_principals_file); |
371 |
CLEAR_ON_NONE(options->authorized_principals_file); |
|
|
372 |
CLEAR_ON_NONE(options->fwd_opts.gateway_ports_explicit); |
| 371 |
for (i = 0; i < options->num_host_key_files; i++) |
373 |
for (i = 0; i < options->num_host_key_files; i++) |
| 372 |
CLEAR_ON_NONE(options->host_key_files[i]); |
374 |
CLEAR_ON_NONE(options->host_key_files[i]); |
| 373 |
for (i = 0; i < options->num_host_cert_files; i++) |
375 |
for (i = 0; i < options->num_host_cert_files; i++) |
|
Lines 405-411
typedef enum {
Link Here
|
| 405 |
sPermitUserEnvironment, sUseLogin, sAllowTcpForwarding, sCompression, |
407 |
sPermitUserEnvironment, sUseLogin, sAllowTcpForwarding, sCompression, |
| 406 |
sRekeyLimit, sAllowUsers, sDenyUsers, sAllowGroups, sDenyGroups, |
408 |
sRekeyLimit, sAllowUsers, sDenyUsers, sAllowGroups, sDenyGroups, |
| 407 |
sIgnoreUserKnownHosts, sCiphers, sMacs, sProtocol, sPidFile, |
409 |
sIgnoreUserKnownHosts, sCiphers, sMacs, sProtocol, sPidFile, |
| 408 |
sGatewayPorts, sPubkeyAuthentication, sPubkeyAcceptedKeyTypes, |
410 |
sGatewayPorts, sGatewayPortsAddresses, |
|
|
411 |
sPubkeyAuthentication, sPubkeyAcceptedKeyTypes, |
| 409 |
sXAuthLocation, sSubsystem, sMaxStartups, sMaxAuthTries, sMaxSessions, |
412 |
sXAuthLocation, sSubsystem, sMaxStartups, sMaxAuthTries, sMaxSessions, |
| 410 |
sBanner, sUseDNS, sHostbasedAuthentication, |
413 |
sBanner, sUseDNS, sHostbasedAuthentication, |
| 411 |
sHostbasedUsesNameFromPacketOnly, sHostbasedAcceptedKeyTypes, |
414 |
sHostbasedUsesNameFromPacketOnly, sHostbasedAcceptedKeyTypes, |
|
Lines 524-529
static struct {
Link Here
|
| 524 |
{ "macs", sMacs, SSHCFG_GLOBAL }, |
527 |
{ "macs", sMacs, SSHCFG_GLOBAL }, |
| 525 |
{ "protocol", sProtocol, SSHCFG_GLOBAL }, |
528 |
{ "protocol", sProtocol, SSHCFG_GLOBAL }, |
| 526 |
{ "gatewayports", sGatewayPorts, SSHCFG_ALL }, |
529 |
{ "gatewayports", sGatewayPorts, SSHCFG_ALL }, |
|
|
530 |
{ "gatewayportsaddresses", sGatewayPortsAddresses, SSHCFG_ALL }, |
| 527 |
{ "subsystem", sSubsystem, SSHCFG_GLOBAL }, |
531 |
{ "subsystem", sSubsystem, SSHCFG_GLOBAL }, |
| 528 |
{ "maxstartups", sMaxStartups, SSHCFG_GLOBAL }, |
532 |
{ "maxstartups", sMaxStartups, SSHCFG_GLOBAL }, |
| 529 |
{ "maxauthtries", sMaxAuthTries, SSHCFG_ALL }, |
533 |
{ "maxauthtries", sMaxAuthTries, SSHCFG_ALL }, |
|
Lines 1344-1349
process_server_config_line(ServerOptions *options, char *line,
Link Here
|
| 1344 |
multistate_ptr = multistate_gatewayports; |
1348 |
multistate_ptr = multistate_gatewayports; |
| 1345 |
goto parse_multistate; |
1349 |
goto parse_multistate; |
| 1346 |
|
1350 |
|
|
|
1351 |
case sGatewayPortsAddresses: |
| 1352 |
arg = strdelim(&cp); |
| 1353 |
if (arg == NULL || *arg != '\0') |
| 1354 |
fatal("%s line %d: Missing argument.", |
| 1355 |
filename, linenum); |
| 1356 |
/* XXX handle streamlocal paths */ |
| 1357 |
if (strcasecmp(arg, "none") != 0 && |
| 1358 |
addr_match_cidr_list(NULL, arg) == -1) |
| 1359 |
fatal("%s line %d: Invalid address list.", |
| 1360 |
filename, linenum); |
| 1361 |
if (*activep && |
| 1362 |
options->fwd_opts.gateway_ports_explicit == NULL) |
| 1363 |
options->fwd_opts.gateway_ports_explicit = xstrdup(arg); |
| 1364 |
break; |
| 1365 |
|
| 1347 |
case sUseDNS: |
1366 |
case sUseDNS: |
| 1348 |
intptr = &options->use_dns; |
1367 |
intptr = &options->use_dns; |
| 1349 |
goto parse_flag; |
1368 |
goto parse_flag; |
|
Lines 2292-2297
dump_config(ServerOptions *o)
Link Here
|
| 2292 |
dump_cfg_string(sAuthorizedPrincipalsCommand, o->authorized_principals_command); |
2311 |
dump_cfg_string(sAuthorizedPrincipalsCommand, o->authorized_principals_command); |
| 2293 |
dump_cfg_string(sAuthorizedPrincipalsCommandUser, o->authorized_principals_command_user); |
2312 |
dump_cfg_string(sAuthorizedPrincipalsCommandUser, o->authorized_principals_command_user); |
| 2294 |
dump_cfg_string(sHostKeyAgent, o->host_key_agent); |
2313 |
dump_cfg_string(sHostKeyAgent, o->host_key_agent); |
|
|
2314 |
dump_cfg_string(sGatewayPortsAddresses, |
| 2315 |
o->fwd_opts.gateway_ports_explicit); |
| 2295 |
dump_cfg_string(sKexAlgorithms, |
2316 |
dump_cfg_string(sKexAlgorithms, |
| 2296 |
o->kex_algorithms ? o->kex_algorithms : KEX_SERVER_KEX); |
2317 |
o->kex_algorithms ? o->kex_algorithms : KEX_SERVER_KEX); |
| 2297 |
dump_cfg_string(sHostbasedAcceptedKeyTypes, o->hostbased_key_types ? |
2318 |
dump_cfg_string(sHostbasedAcceptedKeyTypes, o->hostbased_key_types ? |