version 1.40, 2006/08/03 03:34:41 |
version 1.41, 2008/03/26 21:28:14 |
|
|
int no_agent_forwarding_flag = 0; |
int no_agent_forwarding_flag = 0; |
int no_x11_forwarding_flag = 0; |
int no_x11_forwarding_flag = 0; |
int no_pty_flag = 0; |
int no_pty_flag = 0; |
|
int no_user_rc = 0; |
|
|
/* "command=" option. */ |
/* "command=" option. */ |
char *forced_command = NULL; |
char *forced_command = NULL; |
|
|
no_port_forwarding_flag = 0; |
no_port_forwarding_flag = 0; |
no_pty_flag = 0; |
no_pty_flag = 0; |
no_x11_forwarding_flag = 0; |
no_x11_forwarding_flag = 0; |
|
no_user_rc = 0; |
while (custom_environment) { |
while (custom_environment) { |
struct envstring *ce = custom_environment; |
struct envstring *ce = custom_environment; |
custom_environment = ce->next; |
custom_environment = ce->next; |
|
|
if (strncasecmp(opts, cp, strlen(cp)) == 0) { |
if (strncasecmp(opts, cp, strlen(cp)) == 0) { |
auth_debug_add("Pty allocation disabled."); |
auth_debug_add("Pty allocation disabled."); |
no_pty_flag = 1; |
no_pty_flag = 1; |
|
opts += strlen(cp); |
|
goto next_option; |
|
} |
|
cp = "no-user-rc"; |
|
if (strncasecmp(opts, cp, strlen(cp)) == 0) { |
|
auth_debug_add("User rc file execution disabled."); |
|
no_user_rc = 1; |
opts += strlen(cp); |
opts += strlen(cp); |
goto next_option; |
goto next_option; |
} |
} |