|
Lines 163-168
initialize_server_options(ServerOptions *options)
Link Here
|
| 163 |
options->ip_qos_bulk = -1; |
163 |
options->ip_qos_bulk = -1; |
| 164 |
options->version_addendum = NULL; |
164 |
options->version_addendum = NULL; |
| 165 |
options->fingerprint_hash = -1; |
165 |
options->fingerprint_hash = -1; |
|
|
166 |
options->adm_forced_shell = NULL; |
| 166 |
} |
167 |
} |
| 167 |
|
168 |
|
| 168 |
/* Returns 1 if a string option is unset or set to "none" or 0 otherwise. */ |
169 |
/* Returns 1 if a string option is unset or set to "none" or 0 otherwise. */ |
|
Lines 400-406
typedef enum {
Link Here
|
| 400 |
sAuthorizedKeysCommand, sAuthorizedKeysCommandUser, |
401 |
sAuthorizedKeysCommand, sAuthorizedKeysCommandUser, |
| 401 |
sAuthenticationMethods, sHostKeyAgent, sPermitUserRC, |
402 |
sAuthenticationMethods, sHostKeyAgent, sPermitUserRC, |
| 402 |
sStreamLocalBindMask, sStreamLocalBindUnlink, |
403 |
sStreamLocalBindMask, sStreamLocalBindUnlink, |
| 403 |
sAllowStreamLocalForwarding, sFingerprintHash, |
404 |
sAllowStreamLocalForwarding, sFingerprintHash, sForceShell, |
| 404 |
sDeprecated, sUnsupported |
405 |
sDeprecated, sUnsupported |
| 405 |
} ServerOpCodes; |
406 |
} ServerOpCodes; |
| 406 |
|
407 |
|
|
Lines 534-539
static struct {
Link Here
|
| 534 |
{ "streamlocalbindunlink", sStreamLocalBindUnlink, SSHCFG_ALL }, |
535 |
{ "streamlocalbindunlink", sStreamLocalBindUnlink, SSHCFG_ALL }, |
| 535 |
{ "allowstreamlocalforwarding", sAllowStreamLocalForwarding, SSHCFG_ALL }, |
536 |
{ "allowstreamlocalforwarding", sAllowStreamLocalForwarding, SSHCFG_ALL }, |
| 536 |
{ "fingerprinthash", sFingerprintHash, SSHCFG_GLOBAL }, |
537 |
{ "fingerprinthash", sFingerprintHash, SSHCFG_GLOBAL }, |
|
|
538 |
{ "forceshell", sForceShell, SSHCFG_ALL }, |
| 537 |
{ NULL, sBadOption, 0 } |
539 |
{ NULL, sBadOption, 0 } |
| 538 |
}; |
540 |
}; |
| 539 |
|
541 |
|
|
Lines 1743-1748
process_server_config_line(ServerOptions *options, char *line,
Link Here
|
| 1743 |
options->fingerprint_hash = value; |
1745 |
options->fingerprint_hash = value; |
| 1744 |
break; |
1746 |
break; |
| 1745 |
|
1747 |
|
|
|
1748 |
case sForceShell: |
| 1749 |
if (cp == NULL) |
| 1750 |
fatal("%.200s line %d: Missing argument.", filename, |
| 1751 |
linenum); |
| 1752 |
len = strspn(cp, WHITESPACE); |
| 1753 |
if (*activep && options->adm_forced_shell == NULL) |
| 1754 |
options->adm_forced_shell = xstrdup(cp + len); |
| 1755 |
return 0; |
| 1756 |
|
| 1746 |
case sDeprecated: |
1757 |
case sDeprecated: |
| 1747 |
logit("%s line %d: Deprecated option %s", |
1758 |
logit("%s line %d: Deprecated option %s", |
| 1748 |
filename, linenum, arg); |
1759 |
filename, linenum, arg); |
|
Lines 1924-1929
copy_set_server_options(ServerOptions *dst, ServerOptions *src, int preauth)
Link Here
|
| 1924 |
|
1935 |
|
| 1925 |
M_CP_STROPT(adm_forced_command); |
1936 |
M_CP_STROPT(adm_forced_command); |
| 1926 |
M_CP_STROPT(chroot_directory); |
1937 |
M_CP_STROPT(chroot_directory); |
|
|
1938 |
M_CP_STROPT(adm_forced_shell); |
| 1927 |
} |
1939 |
} |
| 1928 |
|
1940 |
|
| 1929 |
#undef M_CP_INTOPT |
1941 |
#undef M_CP_INTOPT |
|
Lines 2173-2178
dump_config(ServerOptions *o)
Link Here
|
| 2173 |
o->hostbased_key_types : KEX_DEFAULT_PK_ALG); |
2185 |
o->hostbased_key_types : KEX_DEFAULT_PK_ALG); |
| 2174 |
dump_cfg_string(sPubkeyAcceptedKeyTypes, o->pubkey_key_types ? |
2186 |
dump_cfg_string(sPubkeyAcceptedKeyTypes, o->pubkey_key_types ? |
| 2175 |
o->pubkey_key_types : KEX_DEFAULT_PK_ALG); |
2187 |
o->pubkey_key_types : KEX_DEFAULT_PK_ALG); |
|
|
2188 |
dump_cfg_string(sForceShell, o->adm_forced_shell); |
| 2176 |
|
2189 |
|
| 2177 |
/* string arguments requiring a lookup */ |
2190 |
/* string arguments requiring a lookup */ |
| 2178 |
dump_cfg_string(sLogLevel, log_level_name(o->log_level)); |
2191 |
dump_cfg_string(sLogLevel, log_level_name(o->log_level)); |