|
Lines 96-101
initialize_server_options(ServerOptions *options)
Link Here
|
| 96 |
options->print_lastlog = -1; |
96 |
options->print_lastlog = -1; |
| 97 |
options->x11_forwarding = -1; |
97 |
options->x11_forwarding = -1; |
| 98 |
options->x11_display_offset = -1; |
98 |
options->x11_display_offset = -1; |
|
|
99 |
options->x11_max_displays = -1; |
| 99 |
options->x11_use_localhost = -1; |
100 |
options->x11_use_localhost = -1; |
| 100 |
options->permit_tty = -1; |
101 |
options->permit_tty = -1; |
| 101 |
options->permit_user_rc = -1; |
102 |
options->permit_user_rc = -1; |
|
Lines 251-256
fill_default_server_options(ServerOptions *options)
Link Here
|
| 251 |
options->x11_forwarding = 0; |
252 |
options->x11_forwarding = 0; |
| 252 |
if (options->x11_display_offset == -1) |
253 |
if (options->x11_display_offset == -1) |
| 253 |
options->x11_display_offset = 10; |
254 |
options->x11_display_offset = 10; |
|
|
255 |
if (options->x11_max_displays == -1) |
| 256 |
options->x11_max_displays = DEFAULT_MAX_DISPLAYS; |
| 254 |
if (options->x11_use_localhost == -1) |
257 |
if (options->x11_use_localhost == -1) |
| 255 |
options->x11_use_localhost = 1; |
258 |
options->x11_use_localhost = 1; |
| 256 |
if (options->xauth_location == NULL) |
259 |
if (options->xauth_location == NULL) |
|
Lines 415-421
typedef enum {
Link Here
|
| 415 |
sPasswordAuthentication, sKbdInteractiveAuthentication, |
418 |
sPasswordAuthentication, sKbdInteractiveAuthentication, |
| 416 |
sListenAddress, sAddressFamily, |
419 |
sListenAddress, sAddressFamily, |
| 417 |
sPrintMotd, sPrintLastLog, sIgnoreRhosts, |
420 |
sPrintMotd, sPrintLastLog, sIgnoreRhosts, |
| 418 |
sX11Forwarding, sX11DisplayOffset, sX11UseLocalhost, |
421 |
sX11Forwarding, sX11DisplayOffset, sX11MaxDisplays, sX11UseLocalhost, |
| 419 |
sPermitTTY, sStrictModes, sEmptyPasswd, sTCPKeepAlive, |
422 |
sPermitTTY, sStrictModes, sEmptyPasswd, sTCPKeepAlive, |
| 420 |
sPermitUserEnvironment, sUseLogin, sAllowTcpForwarding, sCompression, |
423 |
sPermitUserEnvironment, sUseLogin, sAllowTcpForwarding, sCompression, |
| 421 |
sRekeyLimit, sAllowUsers, sDenyUsers, sAllowGroups, sDenyGroups, |
424 |
sRekeyLimit, sAllowUsers, sDenyUsers, sAllowGroups, sDenyGroups, |
|
Lines 523-528
static struct {
Link Here
|
| 523 |
{ "ignoreuserknownhosts", sIgnoreUserKnownHosts, SSHCFG_GLOBAL }, |
526 |
{ "ignoreuserknownhosts", sIgnoreUserKnownHosts, SSHCFG_GLOBAL }, |
| 524 |
{ "x11forwarding", sX11Forwarding, SSHCFG_ALL }, |
527 |
{ "x11forwarding", sX11Forwarding, SSHCFG_ALL }, |
| 525 |
{ "x11displayoffset", sX11DisplayOffset, SSHCFG_ALL }, |
528 |
{ "x11displayoffset", sX11DisplayOffset, SSHCFG_ALL }, |
|
|
529 |
{ "x11maxdisplays", sX11MaxDisplays, SSHCFG_ALL }, |
| 526 |
{ "x11uselocalhost", sX11UseLocalhost, SSHCFG_ALL }, |
530 |
{ "x11uselocalhost", sX11UseLocalhost, SSHCFG_ALL }, |
| 527 |
{ "xauthlocation", sXAuthLocation, SSHCFG_GLOBAL }, |
531 |
{ "xauthlocation", sXAuthLocation, SSHCFG_GLOBAL }, |
| 528 |
{ "strictmodes", sStrictModes, SSHCFG_GLOBAL }, |
532 |
{ "strictmodes", sStrictModes, SSHCFG_GLOBAL }, |
|
Lines 1287-1292
process_server_config_line(ServerOptions *options, char *line,
Link Here
|
| 1287 |
intptr = &options->x11_display_offset; |
1291 |
intptr = &options->x11_display_offset; |
| 1288 |
goto parse_int; |
1292 |
goto parse_int; |
| 1289 |
|
1293 |
|
|
|
1294 |
case sX11MaxDisplays: |
| 1295 |
intptr = &options->x11_max_displays; |
| 1296 |
goto parse_int; |
| 1297 |
|
| 1290 |
case sX11UseLocalhost: |
1298 |
case sX11UseLocalhost: |
| 1291 |
intptr = &options->x11_use_localhost; |
1299 |
intptr = &options->x11_use_localhost; |
| 1292 |
goto parse_flag; |
1300 |
goto parse_flag; |
|
Lines 2021-2026
copy_set_server_options(ServerOptions *dst, ServerOptions *src, int preauth)
Link Here
|
| 2021 |
M_CP_INTOPT(fwd_opts.gateway_ports); |
2029 |
M_CP_INTOPT(fwd_opts.gateway_ports); |
| 2022 |
M_CP_INTOPT(fwd_opts.streamlocal_bind_unlink); |
2030 |
M_CP_INTOPT(fwd_opts.streamlocal_bind_unlink); |
| 2023 |
M_CP_INTOPT(x11_display_offset); |
2031 |
M_CP_INTOPT(x11_display_offset); |
|
|
2032 |
M_CP_INTOPT(x11_max_displays); |
| 2024 |
M_CP_INTOPT(x11_forwarding); |
2033 |
M_CP_INTOPT(x11_forwarding); |
| 2025 |
M_CP_INTOPT(x11_use_localhost); |
2034 |
M_CP_INTOPT(x11_use_localhost); |
| 2026 |
M_CP_INTOPT(permit_tty); |
2035 |
M_CP_INTOPT(permit_tty); |
|
Lines 2279-2284
dump_config(ServerOptions *o)
Link Here
|
| 2279 |
dump_cfg_int(sLoginGraceTime, o->login_grace_time); |
2288 |
dump_cfg_int(sLoginGraceTime, o->login_grace_time); |
| 2280 |
dump_cfg_int(sKeyRegenerationTime, o->key_regeneration_time); |
2289 |
dump_cfg_int(sKeyRegenerationTime, o->key_regeneration_time); |
| 2281 |
dump_cfg_int(sX11DisplayOffset, o->x11_display_offset); |
2290 |
dump_cfg_int(sX11DisplayOffset, o->x11_display_offset); |
|
|
2291 |
dump_cfg_int(sX11MaxDisplays, o->x11_max_displays); |
| 2282 |
dump_cfg_int(sMaxAuthTries, o->max_authtries); |
2292 |
dump_cfg_int(sMaxAuthTries, o->max_authtries); |
| 2283 |
dump_cfg_int(sMaxSessions, o->max_sessions); |
2293 |
dump_cfg_int(sMaxSessions, o->max_sessions); |
| 2284 |
dump_cfg_int(sClientAliveInterval, o->client_alive_interval); |
2294 |
dump_cfg_int(sClientAliveInterval, o->client_alive_interval); |