version 1.5, 2000/10/09 21:32:34 |
version 1.6, 2000/11/15 22:31:36 |
|
|
|
|
while (*options && *options != ' ' && *options != '\t') { |
while (*options && *options != ' ' && *options != '\t') { |
cp = "no-port-forwarding"; |
cp = "no-port-forwarding"; |
if (strncmp(options, cp, strlen(cp)) == 0) { |
if (strncasecmp(options, cp, strlen(cp)) == 0) { |
packet_send_debug("Port forwarding disabled."); |
packet_send_debug("Port forwarding disabled."); |
no_port_forwarding_flag = 1; |
no_port_forwarding_flag = 1; |
options += strlen(cp); |
options += strlen(cp); |
goto next_option; |
goto next_option; |
} |
} |
cp = "no-agent-forwarding"; |
cp = "no-agent-forwarding"; |
if (strncmp(options, cp, strlen(cp)) == 0) { |
if (strncasecmp(options, cp, strlen(cp)) == 0) { |
packet_send_debug("Agent forwarding disabled."); |
packet_send_debug("Agent forwarding disabled."); |
no_agent_forwarding_flag = 1; |
no_agent_forwarding_flag = 1; |
options += strlen(cp); |
options += strlen(cp); |
goto next_option; |
goto next_option; |
} |
} |
cp = "no-X11-forwarding"; |
cp = "no-X11-forwarding"; |
if (strncmp(options, cp, strlen(cp)) == 0) { |
if (strncasecmp(options, cp, strlen(cp)) == 0) { |
packet_send_debug("X11 forwarding disabled."); |
packet_send_debug("X11 forwarding disabled."); |
no_x11_forwarding_flag = 1; |
no_x11_forwarding_flag = 1; |
options += strlen(cp); |
options += strlen(cp); |
goto next_option; |
goto next_option; |
} |
} |
cp = "no-pty"; |
cp = "no-pty"; |
if (strncmp(options, cp, strlen(cp)) == 0) { |
if (strncasecmp(options, cp, strlen(cp)) == 0) { |
packet_send_debug("Pty allocation disabled."); |
packet_send_debug("Pty allocation disabled."); |
no_pty_flag = 1; |
no_pty_flag = 1; |
options += strlen(cp); |
options += strlen(cp); |
goto next_option; |
goto next_option; |
} |
} |
cp = "command=\""; |
cp = "command=\""; |
if (strncmp(options, cp, strlen(cp)) == 0) { |
if (strncasecmp(options, cp, strlen(cp)) == 0) { |
int i; |
int i; |
options += strlen(cp); |
options += strlen(cp); |
forced_command = xmalloc(strlen(options) + 1); |
forced_command = xmalloc(strlen(options) + 1); |
|
|
goto next_option; |
goto next_option; |
} |
} |
cp = "environment=\""; |
cp = "environment=\""; |
if (strncmp(options, cp, strlen(cp)) == 0) { |
if (strncasecmp(options, cp, strlen(cp)) == 0) { |
int i; |
int i; |
char *s; |
char *s; |
struct envstring *new_envstring; |
struct envstring *new_envstring; |
|
|
goto next_option; |
goto next_option; |
} |
} |
cp = "from=\""; |
cp = "from=\""; |
if (strncmp(options, cp, strlen(cp)) == 0) { |
if (strncasecmp(options, cp, strlen(cp)) == 0) { |
int mname, mip; |
int mname, mip; |
char *patterns = xmalloc(strlen(options) + 1); |
char *patterns = xmalloc(strlen(options) + 1); |
int i; |
int i; |