|
Lines 85-90
initialize_server_options(ServerOptions
Link Here
|
| 85 |
options->x11_forwarding = -1; |
85 |
options->x11_forwarding = -1; |
| 86 |
options->x11_display_offset = -1; |
86 |
options->x11_display_offset = -1; |
| 87 |
options->x11_use_localhost = -1; |
87 |
options->x11_use_localhost = -1; |
|
|
88 |
options->permit_tty = -1; |
| 88 |
options->xauth_location = NULL; |
89 |
options->xauth_location = NULL; |
| 89 |
options->strict_modes = -1; |
90 |
options->strict_modes = -1; |
| 90 |
options->tcp_keep_alive = -1; |
91 |
options->tcp_keep_alive = -1; |
|
Lines 201-206
fill_default_server_options(ServerOption
Link Here
|
| 201 |
options->x11_use_localhost = 1; |
202 |
options->x11_use_localhost = 1; |
| 202 |
if (options->xauth_location == NULL) |
203 |
if (options->xauth_location == NULL) |
| 203 |
options->xauth_location = _PATH_XAUTH; |
204 |
options->xauth_location = _PATH_XAUTH; |
|
|
205 |
if (options->permit_tty == -1) |
| 206 |
options->permit_tty = 1; |
| 204 |
if (options->strict_modes == -1) |
207 |
if (options->strict_modes == -1) |
| 205 |
options->strict_modes = 1; |
208 |
options->strict_modes = 1; |
| 206 |
if (options->tcp_keep_alive == -1) |
209 |
if (options->tcp_keep_alive == -1) |
|
Lines 314-320
typedef enum {
Link Here
|
| 314 |
sListenAddress, sAddressFamily, |
317 |
sListenAddress, sAddressFamily, |
| 315 |
sPrintMotd, sPrintLastLog, sIgnoreRhosts, |
318 |
sPrintMotd, sPrintLastLog, sIgnoreRhosts, |
| 316 |
sX11Forwarding, sX11DisplayOffset, sX11UseLocalhost, |
319 |
sX11Forwarding, sX11DisplayOffset, sX11UseLocalhost, |
| 317 |
sStrictModes, sEmptyPasswd, sTCPKeepAlive, |
320 |
sPermitTTY, sStrictModes, sEmptyPasswd, sTCPKeepAlive, |
| 318 |
sPermitUserEnvironment, sUseLogin, sAllowTcpForwarding, sCompression, |
321 |
sPermitUserEnvironment, sUseLogin, sAllowTcpForwarding, sCompression, |
| 319 |
sAllowUsers, sDenyUsers, sAllowGroups, sDenyGroups, |
322 |
sAllowUsers, sDenyUsers, sAllowGroups, sDenyGroups, |
| 320 |
sIgnoreUserKnownHosts, sCiphers, sMacs, sProtocol, sPidFile, |
323 |
sIgnoreUserKnownHosts, sCiphers, sMacs, sProtocol, sPidFile, |
|
Lines 443-448
static struct {
Link Here
|
| 443 |
{ "useprivilegeseparation", sUsePrivilegeSeparation, SSHCFG_GLOBAL}, |
446 |
{ "useprivilegeseparation", sUsePrivilegeSeparation, SSHCFG_GLOBAL}, |
| 444 |
{ "acceptenv", sAcceptEnv, SSHCFG_ALL }, |
447 |
{ "acceptenv", sAcceptEnv, SSHCFG_ALL }, |
| 445 |
{ "permittunnel", sPermitTunnel, SSHCFG_ALL }, |
448 |
{ "permittunnel", sPermitTunnel, SSHCFG_ALL }, |
|
|
449 |
{ "permittty", sPermitTTY, SSHCFG_ALL }, |
| 446 |
{ "match", sMatch, SSHCFG_ALL }, |
450 |
{ "match", sMatch, SSHCFG_ALL }, |
| 447 |
{ "permitopen", sPermitOpen, SSHCFG_ALL }, |
451 |
{ "permitopen", sPermitOpen, SSHCFG_ALL }, |
| 448 |
{ "forcecommand", sForceCommand, SSHCFG_ALL }, |
452 |
{ "forcecommand", sForceCommand, SSHCFG_ALL }, |
|
Lines 1075-1080
process_server_config_line(ServerOptions
Link Here
|
| 1075 |
charptr = &options->xauth_location; |
1079 |
charptr = &options->xauth_location; |
| 1076 |
goto parse_filename; |
1080 |
goto parse_filename; |
| 1077 |
|
1081 |
|
|
|
1082 |
case sPermitTTY: |
| 1083 |
intptr = &options->permit_tty; |
| 1084 |
goto parse_flag; |
| 1085 |
|
| 1078 |
case sStrictModes: |
1086 |
case sStrictModes: |
| 1079 |
intptr = &options->strict_modes; |
1087 |
intptr = &options->strict_modes; |
| 1080 |
goto parse_flag; |
1088 |
goto parse_flag; |
|
Lines 1657-1662
copy_set_server_options(ServerOptions *d
Link Here
|
| 1657 |
M_CP_INTOPT(x11_display_offset); |
1665 |
M_CP_INTOPT(x11_display_offset); |
| 1658 |
M_CP_INTOPT(x11_forwarding); |
1666 |
M_CP_INTOPT(x11_forwarding); |
| 1659 |
M_CP_INTOPT(x11_use_localhost); |
1667 |
M_CP_INTOPT(x11_use_localhost); |
|
|
1668 |
M_CP_INTOPT(permit_tty); |
| 1660 |
M_CP_INTOPT(max_sessions); |
1669 |
M_CP_INTOPT(max_sessions); |
| 1661 |
M_CP_INTOPT(max_authtries); |
1670 |
M_CP_INTOPT(max_authtries); |
| 1662 |
M_CP_INTOPT(ip_qos_interactive); |
1671 |
M_CP_INTOPT(ip_qos_interactive); |
|
Lines 1883-1888
dump_config(ServerOptions *o)
Link Here
|
| 1883 |
dump_cfg_fmtint(sPrintLastLog, o->print_lastlog); |
1892 |
dump_cfg_fmtint(sPrintLastLog, o->print_lastlog); |
| 1884 |
dump_cfg_fmtint(sX11Forwarding, o->x11_forwarding); |
1893 |
dump_cfg_fmtint(sX11Forwarding, o->x11_forwarding); |
| 1885 |
dump_cfg_fmtint(sX11UseLocalhost, o->x11_use_localhost); |
1894 |
dump_cfg_fmtint(sX11UseLocalhost, o->x11_use_localhost); |
|
|
1895 |
dump_cfg_fmtint(sPermitTTY, o->permit_tty); |
| 1886 |
dump_cfg_fmtint(sStrictModes, o->strict_modes); |
1896 |
dump_cfg_fmtint(sStrictModes, o->strict_modes); |
| 1887 |
dump_cfg_fmtint(sTCPKeepAlive, o->tcp_keep_alive); |
1897 |
dump_cfg_fmtint(sTCPKeepAlive, o->tcp_keep_alive); |
| 1888 |
dump_cfg_fmtint(sEmptyPasswd, o->permit_empty_passwd); |
1898 |
dump_cfg_fmtint(sEmptyPasswd, o->permit_empty_passwd); |