version 1.232, 2012/11/04 11:09:15 |
version 1.233, 2012/12/02 20:46:11 |
|
|
if (options->compression == -1) |
if (options->compression == -1) |
options->compression = COMP_DELAYED; |
options->compression = COMP_DELAYED; |
if (options->allow_tcp_forwarding == -1) |
if (options->allow_tcp_forwarding == -1) |
options->allow_tcp_forwarding = 1; |
options->allow_tcp_forwarding = FORWARD_ALLOW; |
if (options->allow_agent_forwarding == -1) |
if (options->allow_agent_forwarding == -1) |
options->allow_agent_forwarding = 1; |
options->allow_agent_forwarding = 1; |
if (options->gateway_ports == -1) |
if (options->gateway_ports == -1) |
|
|
{ "no", PRIVSEP_OFF }, |
{ "no", PRIVSEP_OFF }, |
{ NULL, -1 } |
{ NULL, -1 } |
}; |
}; |
|
static const struct multistate multistate_tcpfwd[] = { |
|
{ "yes", FORWARD_ALLOW }, |
|
{ "all", FORWARD_ALLOW }, |
|
{ "no", FORWARD_DENY }, |
|
{ "remote", FORWARD_REMOTE }, |
|
{ "local", FORWARD_LOCAL }, |
|
{ NULL, -1 } |
|
}; |
|
|
int |
int |
process_server_config_line(ServerOptions *options, char *line, |
process_server_config_line(ServerOptions *options, char *line, |
|
|
|
|
case sAllowTcpForwarding: |
case sAllowTcpForwarding: |
intptr = &options->allow_tcp_forwarding; |
intptr = &options->allow_tcp_forwarding; |
goto parse_flag; |
multistate_ptr = multistate_tcpfwd; |
|
goto parse_multistate; |
|
|
case sAllowAgentForwarding: |
case sAllowAgentForwarding: |
intptr = &options->allow_agent_forwarding; |
intptr = &options->allow_agent_forwarding; |
|
|
} |
} |
if (strcmp(arg, "none") == 0) { |
if (strcmp(arg, "none") == 0) { |
if (*activep && n == -1) { |
if (*activep && n == -1) { |
channel_clear_adm_permitted_opens(); |
|
options->num_permitted_opens = 1; |
options->num_permitted_opens = 1; |
channel_disable_adm_local_opens(); |
channel_disable_adm_local_opens(); |
} |
} |
|
|
return fmt_multistate_int(val, multistate_compression); |
return fmt_multistate_int(val, multistate_compression); |
case sUsePrivilegeSeparation: |
case sUsePrivilegeSeparation: |
return fmt_multistate_int(val, multistate_privsep); |
return fmt_multistate_int(val, multistate_privsep); |
|
case sAllowTcpForwarding: |
|
return fmt_multistate_int(val, multistate_tcpfwd); |
case sProtocol: |
case sProtocol: |
switch (val) { |
switch (val) { |
case SSH_PROTO_1: |
case SSH_PROTO_1: |