|
Lines 77-82
initialize_server_options(ServerOptions *options)
Link Here
|
| 77 |
options->listen_addrs = NULL; |
77 |
options->listen_addrs = NULL; |
| 78 |
options->num_listen_addrs = 0; |
78 |
options->num_listen_addrs = 0; |
| 79 |
options->address_family = -1; |
79 |
options->address_family = -1; |
|
|
80 |
options->routing_domain = NULL; |
| 80 |
options->num_host_key_files = 0; |
81 |
options->num_host_key_files = 0; |
| 81 |
options->num_host_cert_files = 0; |
82 |
options->num_host_cert_files = 0; |
| 82 |
options->host_key_agent = NULL; |
83 |
options->host_key_agent = NULL; |
|
Lines 385-390
fill_default_server_options(ServerOptions *options)
Link Here
|
| 385 |
CLEAR_ON_NONE(options->authorized_principals_file); |
386 |
CLEAR_ON_NONE(options->authorized_principals_file); |
| 386 |
CLEAR_ON_NONE(options->adm_forced_command); |
387 |
CLEAR_ON_NONE(options->adm_forced_command); |
| 387 |
CLEAR_ON_NONE(options->chroot_directory); |
388 |
CLEAR_ON_NONE(options->chroot_directory); |
|
|
389 |
CLEAR_ON_NONE(options->routing_domain); |
| 388 |
for (i = 0; i < options->num_host_key_files; i++) |
390 |
for (i = 0; i < options->num_host_key_files; i++) |
| 389 |
CLEAR_ON_NONE(options->host_key_files[i]); |
391 |
CLEAR_ON_NONE(options->host_key_files[i]); |
| 390 |
for (i = 0; i < options->num_host_cert_files; i++) |
392 |
for (i = 0; i < options->num_host_cert_files; i++) |
|
Lines 435-441
typedef enum {
Link Here
|
| 435 |
sAuthenticationMethods, sHostKeyAgent, sPermitUserRC, |
437 |
sAuthenticationMethods, sHostKeyAgent, sPermitUserRC, |
| 436 |
sStreamLocalBindMask, sStreamLocalBindUnlink, |
438 |
sStreamLocalBindMask, sStreamLocalBindUnlink, |
| 437 |
sAllowStreamLocalForwarding, sFingerprintHash, sDisableForwarding, |
439 |
sAllowStreamLocalForwarding, sFingerprintHash, sDisableForwarding, |
| 438 |
sExposeAuthInfo, |
440 |
sExposeAuthInfo, sRoutingDomain, |
| 439 |
sDeprecated, sIgnore, sUnsupported |
441 |
sDeprecated, sIgnore, sUnsupported |
| 440 |
} ServerOpCodes; |
442 |
} ServerOpCodes; |
| 441 |
|
443 |
|
|
Lines 564-569
static struct {
Link Here
|
| 564 |
{ "fingerprinthash", sFingerprintHash, SSHCFG_GLOBAL }, |
566 |
{ "fingerprinthash", sFingerprintHash, SSHCFG_GLOBAL }, |
| 565 |
{ "disableforwarding", sDisableForwarding, SSHCFG_ALL }, |
567 |
{ "disableforwarding", sDisableForwarding, SSHCFG_ALL }, |
| 566 |
{ "exposeauthinfo", sExposeAuthInfo, SSHCFG_ALL }, |
568 |
{ "exposeauthinfo", sExposeAuthInfo, SSHCFG_ALL }, |
|
|
569 |
{ "routingdomain", sRoutingDomain, SSHCFG_ALL }, |
| 567 |
{ NULL, sBadOption, 0 } |
570 |
{ NULL, sBadOption, 0 } |
| 568 |
}; |
571 |
}; |
| 569 |
|
572 |
|
|
Lines 1928-1933
process_server_config_line(ServerOptions *options, char *line,
Link Here
|
| 1928 |
intptr = &options->expose_userauth_info; |
1931 |
intptr = &options->expose_userauth_info; |
| 1929 |
goto parse_flag; |
1932 |
goto parse_flag; |
| 1930 |
|
1933 |
|
|
|
1934 |
case sRoutingDomain: |
| 1935 |
charptr = &options->routing_domain; |
| 1936 |
arg = strdelim(&cp); |
| 1937 |
if (!arg || *arg == '\0') |
| 1938 |
fatal("%.200s line %d: Missing argument.", |
| 1939 |
filename, linenum); |
| 1940 |
if (strcasecmp(arg, "none") != 0 && strcmp(arg, "%D") == 0 && |
| 1941 |
!valid_rdomain(arg)) |
| 1942 |
fatal("%s line %d: bad routing domain", |
| 1943 |
filename, linenum); |
| 1944 |
if (*activep && *charptr == NULL) |
| 1945 |
*charptr = xstrdup(arg); |
| 1946 |
|
| 1931 |
case sDeprecated: |
1947 |
case sDeprecated: |
| 1932 |
case sIgnore: |
1948 |
case sIgnore: |
| 1933 |
case sUnsupported: |
1949 |
case sUnsupported: |
|
Lines 2410-2415
dump_config(ServerOptions *o)
Link Here
|
| 2410 |
o->hostkeyalgorithms : KEX_DEFAULT_PK_ALG); |
2426 |
o->hostkeyalgorithms : KEX_DEFAULT_PK_ALG); |
| 2411 |
dump_cfg_string(sPubkeyAcceptedKeyTypes, o->pubkey_key_types ? |
2427 |
dump_cfg_string(sPubkeyAcceptedKeyTypes, o->pubkey_key_types ? |
| 2412 |
o->pubkey_key_types : KEX_DEFAULT_PK_ALG); |
2428 |
o->pubkey_key_types : KEX_DEFAULT_PK_ALG); |
|
|
2429 |
dump_cfg_string(sRoutingDomain, o->routing_domain); |
| 2413 |
|
2430 |
|
| 2414 |
/* string arguments requiring a lookup */ |
2431 |
/* string arguments requiring a lookup */ |
| 2415 |
dump_cfg_string(sLogLevel, log_level_name(o->log_level)); |
2432 |
dump_cfg_string(sLogLevel, log_level_name(o->log_level)); |