|
Lines 167-172
initialize_server_options(ServerOptions *options)
Link Here
|
| 167 |
options->ip_qos_bulk = -1; |
167 |
options->ip_qos_bulk = -1; |
| 168 |
options->version_addendum = NULL; |
168 |
options->version_addendum = NULL; |
| 169 |
options->fingerprint_hash = -1; |
169 |
options->fingerprint_hash = -1; |
|
|
170 |
options->change_directory = NULL; |
| 170 |
} |
171 |
} |
| 171 |
|
172 |
|
| 172 |
/* Returns 1 if a string option is unset or set to "none" or 0 otherwise. */ |
173 |
/* Returns 1 if a string option is unset or set to "none" or 0 otherwise. */ |
|
Lines 411-417
typedef enum {
Link Here
|
| 411 |
sAuthorizedKeysCommand, sAuthorizedKeysCommandUser, |
412 |
sAuthorizedKeysCommand, sAuthorizedKeysCommandUser, |
| 412 |
sAuthenticationMethods, sHostKeyAgent, sPermitUserRC, |
413 |
sAuthenticationMethods, sHostKeyAgent, sPermitUserRC, |
| 413 |
sStreamLocalBindMask, sStreamLocalBindUnlink, |
414 |
sStreamLocalBindMask, sStreamLocalBindUnlink, |
| 414 |
sAllowStreamLocalForwarding, sFingerprintHash, |
415 |
sAllowStreamLocalForwarding, sFingerprintHash, sChangeDirectory, |
| 415 |
sDeprecated, sUnsupported |
416 |
sDeprecated, sUnsupported |
| 416 |
} ServerOpCodes; |
417 |
} ServerOpCodes; |
| 417 |
|
418 |
|
|
Lines 549-554
static struct {
Link Here
|
| 549 |
{ "streamlocalbindunlink", sStreamLocalBindUnlink, SSHCFG_ALL }, |
550 |
{ "streamlocalbindunlink", sStreamLocalBindUnlink, SSHCFG_ALL }, |
| 550 |
{ "allowstreamlocalforwarding", sAllowStreamLocalForwarding, SSHCFG_ALL }, |
551 |
{ "allowstreamlocalforwarding", sAllowStreamLocalForwarding, SSHCFG_ALL }, |
| 551 |
{ "fingerprinthash", sFingerprintHash, SSHCFG_GLOBAL }, |
552 |
{ "fingerprinthash", sFingerprintHash, SSHCFG_GLOBAL }, |
|
|
553 |
{ "changedirectory", sChangeDirectory, SSHCFG_ALL }, |
| 552 |
{ NULL, sBadOption, 0 } |
554 |
{ NULL, sBadOption, 0 } |
| 553 |
}; |
555 |
}; |
| 554 |
|
556 |
|
|
Lines 1826-1831
process_server_config_line(ServerOptions *options, char *line,
Link Here
|
| 1826 |
options->fingerprint_hash = value; |
1828 |
options->fingerprint_hash = value; |
| 1827 |
break; |
1829 |
break; |
| 1828 |
|
1830 |
|
|
|
1831 |
case sChangeDirectory: |
| 1832 |
arg = strdelim(&cp); |
| 1833 |
if (!arg || *arg == '\0') |
| 1834 |
fatal("%s line %d: missing directory name.", |
| 1835 |
filename, linenum); |
| 1836 |
if (*activep && !options->change_directory) |
| 1837 |
options->change_directory = xstrdup(arg); |
| 1838 |
break; |
| 1839 |
|
| 1829 |
case sDeprecated: |
1840 |
case sDeprecated: |
| 1830 |
logit("%s line %d: Deprecated option %s", |
1841 |
logit("%s line %d: Deprecated option %s", |
| 1831 |
filename, linenum, arg); |
1842 |
filename, linenum, arg); |
|
Lines 2007-2012
copy_set_server_options(ServerOptions *dst, ServerOptions *src, int preauth)
Link Here
|
| 2007 |
|
2018 |
|
| 2008 |
M_CP_STROPT(adm_forced_command); |
2019 |
M_CP_STROPT(adm_forced_command); |
| 2009 |
M_CP_STROPT(chroot_directory); |
2020 |
M_CP_STROPT(chroot_directory); |
|
|
2021 |
M_CP_STROPT(change_directory); |
| 2010 |
} |
2022 |
} |
| 2011 |
|
2023 |
|
| 2012 |
#undef M_CP_INTOPT |
2024 |
#undef M_CP_INTOPT |
|
Lines 2281-2286
dump_config(ServerOptions *o)
Link Here
|
| 2281 |
o->hostbased_key_types : KEX_DEFAULT_PK_ALG); |
2293 |
o->hostbased_key_types : KEX_DEFAULT_PK_ALG); |
| 2282 |
dump_cfg_string(sPubkeyAcceptedKeyTypes, o->pubkey_key_types ? |
2294 |
dump_cfg_string(sPubkeyAcceptedKeyTypes, o->pubkey_key_types ? |
| 2283 |
o->pubkey_key_types : KEX_DEFAULT_PK_ALG); |
2295 |
o->pubkey_key_types : KEX_DEFAULT_PK_ALG); |
|
|
2296 |
dump_cfg_string(sChangeDirectory, o->change_directory); |
| 2284 |
|
2297 |
|
| 2285 |
/* string arguments requiring a lookup */ |
2298 |
/* string arguments requiring a lookup */ |
| 2286 |
dump_cfg_string(sLogLevel, log_level_name(o->log_level)); |
2299 |
dump_cfg_string(sLogLevel, log_level_name(o->log_level)); |