|
Lines 28-33
int no_port_forwarding_flag = 0;
Link Here
|
| 28 |
int no_agent_forwarding_flag = 0; |
28 |
int no_agent_forwarding_flag = 0; |
| 29 |
int no_x11_forwarding_flag = 0; |
29 |
int no_x11_forwarding_flag = 0; |
| 30 |
int no_pty_flag = 0; |
30 |
int no_pty_flag = 0; |
|
|
31 |
int scp_only_flag = 0; |
| 31 |
|
32 |
|
| 32 |
/* "command=" option. */ |
33 |
/* "command=" option. */ |
| 33 |
char *forced_command = NULL; |
34 |
char *forced_command = NULL; |
|
Lines 47-52
auth_clear_options(void)
Link Here
|
| 47 |
no_port_forwarding_flag = 0; |
48 |
no_port_forwarding_flag = 0; |
| 48 |
no_pty_flag = 0; |
49 |
no_pty_flag = 0; |
| 49 |
no_x11_forwarding_flag = 0; |
50 |
no_x11_forwarding_flag = 0; |
|
|
51 |
scp_only_flag = 0; |
| 50 |
while (custom_environment) { |
52 |
while (custom_environment) { |
| 51 |
struct envstring *ce = custom_environment; |
53 |
struct envstring *ce = custom_environment; |
| 52 |
custom_environment = ce->next; |
54 |
custom_environment = ce->next; |
|
Lines 79-84
auth_parse_options(struct passwd *pw, ch
Link Here
|
| 79 |
return 1; |
81 |
return 1; |
| 80 |
|
82 |
|
| 81 |
while (*opts && *opts != ' ' && *opts != '\t') { |
83 |
while (*opts && *opts != ' ' && *opts != '\t') { |
|
|
84 |
cp = "scp-only"; |
| 85 |
if (strncasecmp(opts, cp, strlen(cp)) == 0) { |
| 86 |
auth_debug_add("scp-only is enabled."); |
| 87 |
scp_only_flag = 1; |
| 88 |
opts += strlen(cp); |
| 89 |
goto next_option; |
| 90 |
} |
| 82 |
cp = "no-port-forwarding"; |
91 |
cp = "no-port-forwarding"; |
| 83 |
if (strncasecmp(opts, cp, strlen(cp)) == 0) { |
92 |
if (strncasecmp(opts, cp, strlen(cp)) == 0) { |
| 84 |
auth_debug_add("Port forwarding disabled."); |
93 |
auth_debug_add("Port forwarding disabled."); |