|
Lines 373-378
fill_default_server_options(ServerOptions *options)
Link Here
|
| 373 |
CLEAR_ON_NONE(options->trusted_user_ca_keys); |
373 |
CLEAR_ON_NONE(options->trusted_user_ca_keys); |
| 374 |
CLEAR_ON_NONE(options->revoked_keys_file); |
374 |
CLEAR_ON_NONE(options->revoked_keys_file); |
| 375 |
CLEAR_ON_NONE(options->authorized_principals_file); |
375 |
CLEAR_ON_NONE(options->authorized_principals_file); |
|
|
376 |
CLEAR_ON_NONE(options->adm_forced_command); |
| 377 |
CLEAR_ON_NONE(options->chroot_directory); |
| 376 |
for (i = 0; i < options->num_host_key_files; i++) |
378 |
for (i = 0; i < options->num_host_key_files; i++) |
| 377 |
CLEAR_ON_NONE(options->host_key_files[i]); |
379 |
CLEAR_ON_NONE(options->host_key_files[i]); |
| 378 |
for (i = 0; i < options->num_host_cert_files; i++) |
380 |
for (i = 0; i < options->num_host_cert_files; i++) |
|
Lines 2034-2041
copy_set_server_options(ServerOptions *dst, ServerOptions *src, int preauth)
Link Here
|
| 2034 |
if (preauth) |
2036 |
if (preauth) |
| 2035 |
return; |
2037 |
return; |
| 2036 |
|
2038 |
|
|
|
2039 |
/* These options may be "none" to clear a global setting */ |
| 2037 |
M_CP_STROPT(adm_forced_command); |
2040 |
M_CP_STROPT(adm_forced_command); |
|
|
2041 |
if (option_clear_or_none(dst->adm_forced_command)) { |
| 2042 |
free(dst->adm_forced_command); |
| 2043 |
dst->adm_forced_command = NULL; |
| 2044 |
} |
| 2038 |
M_CP_STROPT(chroot_directory); |
2045 |
M_CP_STROPT(chroot_directory); |
|
|
2046 |
if (option_clear_or_none(dst->chroot_directory)) { |
| 2047 |
free(dst->chroot_directory); |
| 2048 |
dst->chroot_directory = NULL; |
| 2049 |
} |
| 2039 |
} |
2050 |
} |
| 2040 |
|
2051 |
|
| 2041 |
#undef M_CP_INTOPT |
2052 |
#undef M_CP_INTOPT |