|
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 407-413
typedef enum {
Link Here
|
| 407 |
sPasswordAuthentication, sKbdInteractiveAuthentication, |
410 |
sPasswordAuthentication, sKbdInteractiveAuthentication, |
| 408 |
sListenAddress, sAddressFamily, |
411 |
sListenAddress, sAddressFamily, |
| 409 |
sPrintMotd, sPrintLastLog, sIgnoreRhosts, |
412 |
sPrintMotd, sPrintLastLog, sIgnoreRhosts, |
| 410 |
sX11Forwarding, sX11DisplayOffset, sX11UseLocalhost, |
413 |
sX11Forwarding, sX11DisplayOffset, sX11MaxDisplays, sX11UseLocalhost, |
| 411 |
sPermitTTY, sStrictModes, sEmptyPasswd, sTCPKeepAlive, |
414 |
sPermitTTY, sStrictModes, sEmptyPasswd, sTCPKeepAlive, |
| 412 |
sPermitUserEnvironment, sUseLogin, sAllowTcpForwarding, sCompression, |
415 |
sPermitUserEnvironment, sUseLogin, sAllowTcpForwarding, sCompression, |
| 413 |
sRekeyLimit, sAllowUsers, sDenyUsers, sAllowGroups, sDenyGroups, |
416 |
sRekeyLimit, sAllowUsers, sDenyUsers, sAllowGroups, sDenyGroups, |
|
Lines 515-520
static struct {
Link Here
|
| 515 |
{ "ignoreuserknownhosts", sIgnoreUserKnownHosts, SSHCFG_GLOBAL }, |
518 |
{ "ignoreuserknownhosts", sIgnoreUserKnownHosts, SSHCFG_GLOBAL }, |
| 516 |
{ "x11forwarding", sX11Forwarding, SSHCFG_ALL }, |
519 |
{ "x11forwarding", sX11Forwarding, SSHCFG_ALL }, |
| 517 |
{ "x11displayoffset", sX11DisplayOffset, SSHCFG_ALL }, |
520 |
{ "x11displayoffset", sX11DisplayOffset, SSHCFG_ALL }, |
|
|
521 |
{ "x11maxdisplays", sX11MaxDisplays, SSHCFG_ALL }, |
| 518 |
{ "x11uselocalhost", sX11UseLocalhost, SSHCFG_ALL }, |
522 |
{ "x11uselocalhost", sX11UseLocalhost, SSHCFG_ALL }, |
| 519 |
{ "xauthlocation", sXAuthLocation, SSHCFG_GLOBAL }, |
523 |
{ "xauthlocation", sXAuthLocation, SSHCFG_GLOBAL }, |
| 520 |
{ "strictmodes", sStrictModes, SSHCFG_GLOBAL }, |
524 |
{ "strictmodes", sStrictModes, SSHCFG_GLOBAL }, |
|
Lines 1279-1284
process_server_config_line(ServerOptions *options, char *line,
Link Here
|
| 1279 |
intptr = &options->x11_display_offset; |
1283 |
intptr = &options->x11_display_offset; |
| 1280 |
goto parse_int; |
1284 |
goto parse_int; |
| 1281 |
|
1285 |
|
|
|
1286 |
case sX11MaxDisplays: |
| 1287 |
intptr = &options->x11_max_displays; |
| 1288 |
goto parse_int; |
| 1289 |
|
| 1282 |
case sX11UseLocalhost: |
1290 |
case sX11UseLocalhost: |
| 1283 |
intptr = &options->x11_use_localhost; |
1291 |
intptr = &options->x11_use_localhost; |
| 1284 |
goto parse_flag; |
1292 |
goto parse_flag; |
|
Lines 1996-2001
copy_set_server_options(ServerOptions *dst, ServerOptions *src, int preauth)
Link Here
|
| 1996 |
M_CP_INTOPT(fwd_opts.gateway_ports); |
2004 |
M_CP_INTOPT(fwd_opts.gateway_ports); |
| 1997 |
M_CP_INTOPT(fwd_opts.streamlocal_bind_unlink); |
2005 |
M_CP_INTOPT(fwd_opts.streamlocal_bind_unlink); |
| 1998 |
M_CP_INTOPT(x11_display_offset); |
2006 |
M_CP_INTOPT(x11_display_offset); |
|
|
2007 |
M_CP_INTOPT(x11_max_displays); |
| 1999 |
M_CP_INTOPT(x11_forwarding); |
2008 |
M_CP_INTOPT(x11_forwarding); |
| 2000 |
M_CP_INTOPT(x11_use_localhost); |
2009 |
M_CP_INTOPT(x11_use_localhost); |
| 2001 |
M_CP_INTOPT(permit_tty); |
2010 |
M_CP_INTOPT(permit_tty); |
|
Lines 2252-2257
dump_config(ServerOptions *o)
Link Here
|
| 2252 |
dump_cfg_int(sLoginGraceTime, o->login_grace_time); |
2261 |
dump_cfg_int(sLoginGraceTime, o->login_grace_time); |
| 2253 |
dump_cfg_int(sKeyRegenerationTime, o->key_regeneration_time); |
2262 |
dump_cfg_int(sKeyRegenerationTime, o->key_regeneration_time); |
| 2254 |
dump_cfg_int(sX11DisplayOffset, o->x11_display_offset); |
2263 |
dump_cfg_int(sX11DisplayOffset, o->x11_display_offset); |
|
|
2264 |
dump_cfg_int(sX11MaxDisplays, o->x11_max_displays); |
| 2255 |
dump_cfg_int(sMaxAuthTries, o->max_authtries); |
2265 |
dump_cfg_int(sMaxAuthTries, o->max_authtries); |
| 2256 |
dump_cfg_int(sMaxSessions, o->max_sessions); |
2266 |
dump_cfg_int(sMaxSessions, o->max_sessions); |
| 2257 |
dump_cfg_int(sClientAliveInterval, o->client_alive_interval); |
2267 |
dump_cfg_int(sClientAliveInterval, o->client_alive_interval); |