|
Lines 80-85
initialize_server_options(ServerOptions *options)
Link Here
|
| 80 |
options->num_host_key_files = 0; |
80 |
options->num_host_key_files = 0; |
| 81 |
options->num_host_cert_files = 0; |
81 |
options->num_host_cert_files = 0; |
| 82 |
options->host_key_agent = NULL; |
82 |
options->host_key_agent = NULL; |
|
|
83 |
options->moduli_file = NULL; |
| 83 |
options->pid_file = NULL; |
84 |
options->pid_file = NULL; |
| 84 |
options->server_key_bits = -1; |
85 |
options->server_key_bits = -1; |
| 85 |
options->login_grace_time = -1; |
86 |
options->login_grace_time = -1; |
|
Lines 189-194
fill_default_server_options(ServerOptions *options)
Link Here
|
| 189 |
options->ports[options->num_ports++] = SSH_DEFAULT_PORT; |
190 |
options->ports[options->num_ports++] = SSH_DEFAULT_PORT; |
| 190 |
if (options->listen_addrs == NULL) |
191 |
if (options->listen_addrs == NULL) |
| 191 |
add_listen_addr(options, NULL, 0); |
192 |
add_listen_addr(options, NULL, 0); |
|
|
193 |
if (options->moduli_file == NULL) |
| 194 |
options->moduli_file = _PATH_DH_MODULI; |
| 192 |
if (options->pid_file == NULL) |
195 |
if (options->pid_file == NULL) |
| 193 |
options->pid_file = _PATH_SSH_DAEMON_PID_FILE; |
196 |
options->pid_file = _PATH_SSH_DAEMON_PID_FILE; |
| 194 |
if (options->server_key_bits == -1) |
197 |
if (options->server_key_bits == -1) |
|
Lines 335-341
typedef enum {
Link Here
|
| 335 |
sPermitTTY, sStrictModes, sEmptyPasswd, sTCPKeepAlive, |
338 |
sPermitTTY, sStrictModes, sEmptyPasswd, sTCPKeepAlive, |
| 336 |
sPermitUserEnvironment, sUseLogin, sAllowTcpForwarding, sCompression, |
339 |
sPermitUserEnvironment, sUseLogin, sAllowTcpForwarding, sCompression, |
| 337 |
sRekeyLimit, sAllowUsers, sDenyUsers, sAllowGroups, sDenyGroups, |
340 |
sRekeyLimit, sAllowUsers, sDenyUsers, sAllowGroups, sDenyGroups, |
| 338 |
sIgnoreUserKnownHosts, sCiphers, sMacs, sProtocol, sPidFile, |
341 |
sIgnoreUserKnownHosts, sCiphers, sMacs, sProtocol, sModuliFile, sPidFile, |
| 339 |
sGatewayPorts, sPubkeyAuthentication, sXAuthLocation, sSubsystem, |
342 |
sGatewayPorts, sPubkeyAuthentication, sXAuthLocation, sSubsystem, |
| 340 |
sMaxStartups, sMaxAuthTries, sMaxSessions, |
343 |
sMaxStartups, sMaxAuthTries, sMaxSessions, |
| 341 |
sBanner, sUseDNS, sHostbasedAuthentication, |
344 |
sBanner, sUseDNS, sHostbasedAuthentication, |
|
Lines 374-379
static struct {
Link Here
|
| 374 |
{ "hostkey", sHostKeyFile, SSHCFG_GLOBAL }, |
377 |
{ "hostkey", sHostKeyFile, SSHCFG_GLOBAL }, |
| 375 |
{ "hostdsakey", sHostKeyFile, SSHCFG_GLOBAL }, /* alias */ |
378 |
{ "hostdsakey", sHostKeyFile, SSHCFG_GLOBAL }, /* alias */ |
| 376 |
{ "hostkeyagent", sHostKeyAgent, SSHCFG_GLOBAL }, |
379 |
{ "hostkeyagent", sHostKeyAgent, SSHCFG_GLOBAL }, |
|
|
380 |
{ "modulifile", sModuliFile, SSHCFG_GLOBAL }, |
| 377 |
{ "pidfile", sPidFile, SSHCFG_GLOBAL }, |
381 |
{ "pidfile", sPidFile, SSHCFG_GLOBAL }, |
| 378 |
{ "serverkeybits", sServerKeyBits, SSHCFG_GLOBAL }, |
382 |
{ "serverkeybits", sServerKeyBits, SSHCFG_GLOBAL }, |
| 379 |
{ "logingracetime", sLoginGraceTime, SSHCFG_GLOBAL }, |
383 |
{ "logingracetime", sLoginGraceTime, SSHCFG_GLOBAL }, |
|
Lines 1016-1021
process_server_config_line(ServerOptions *options, char *line,
Link Here
|
| 1016 |
goto parse_filename; |
1020 |
goto parse_filename; |
| 1017 |
break; |
1021 |
break; |
| 1018 |
|
1022 |
|
|
|
1023 |
case sModuliFile: |
| 1024 |
charptr = &options->moduli_file; |
| 1025 |
goto parse_filename; |
| 1026 |
|
| 1019 |
case sPidFile: |
1027 |
case sPidFile: |
| 1020 |
charptr = &options->pid_file; |
1028 |
charptr = &options->pid_file; |
| 1021 |
goto parse_filename; |
1029 |
goto parse_filename; |
|
Lines 2029-2034
dump_config(ServerOptions *o)
Link Here
|
| 2029 |
dump_cfg_fmtint(sUsePrivilegeSeparation, use_privsep); |
2037 |
dump_cfg_fmtint(sUsePrivilegeSeparation, use_privsep); |
| 2030 |
|
2038 |
|
| 2031 |
/* string arguments */ |
2039 |
/* string arguments */ |
|
|
2040 |
dump_cfg_string(sModuliFile, o->moduli_file); |
| 2032 |
dump_cfg_string(sPidFile, o->pid_file); |
2041 |
dump_cfg_string(sPidFile, o->pid_file); |
| 2033 |
dump_cfg_string(sXAuthLocation, o->xauth_location); |
2042 |
dump_cfg_string(sXAuthLocation, o->xauth_location); |
| 2034 |
dump_cfg_string(sCiphers, o->ciphers ? o->ciphers : |
2043 |
dump_cfg_string(sCiphers, o->ciphers ? o->ciphers : |