diff options
Diffstat (limited to 'auth-options.c')
-rw-r--r-- | auth-options.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/auth-options.c b/auth-options.c index c9c149d69..181bf7321 100644 --- a/auth-options.c +++ b/auth-options.c | |||
@@ -14,7 +14,7 @@ | |||
14 | */ | 14 | */ |
15 | 15 | ||
16 | #include "includes.h" | 16 | #include "includes.h" |
17 | RCSID("$OpenBSD: auth-options.c,v 1.5 2000/10/09 21:32:34 markus Exp $"); | 17 | RCSID("$OpenBSD: auth-options.c,v 1.6 2000/11/15 22:31:36 markus Exp $"); |
18 | 18 | ||
19 | #include "ssh.h" | 19 | #include "ssh.h" |
20 | #include "packet.h" | 20 | #include "packet.h" |
@@ -65,35 +65,35 @@ auth_parse_options(struct passwd *pw, char *options, unsigned long linenum) | |||
65 | 65 | ||
66 | while (*options && *options != ' ' && *options != '\t') { | 66 | while (*options && *options != ' ' && *options != '\t') { |
67 | cp = "no-port-forwarding"; | 67 | cp = "no-port-forwarding"; |
68 | if (strncmp(options, cp, strlen(cp)) == 0) { | 68 | if (strncasecmp(options, cp, strlen(cp)) == 0) { |
69 | packet_send_debug("Port forwarding disabled."); | 69 | packet_send_debug("Port forwarding disabled."); |
70 | no_port_forwarding_flag = 1; | 70 | no_port_forwarding_flag = 1; |
71 | options += strlen(cp); | 71 | options += strlen(cp); |
72 | goto next_option; | 72 | goto next_option; |
73 | } | 73 | } |
74 | cp = "no-agent-forwarding"; | 74 | cp = "no-agent-forwarding"; |
75 | if (strncmp(options, cp, strlen(cp)) == 0) { | 75 | if (strncasecmp(options, cp, strlen(cp)) == 0) { |
76 | packet_send_debug("Agent forwarding disabled."); | 76 | packet_send_debug("Agent forwarding disabled."); |
77 | no_agent_forwarding_flag = 1; | 77 | no_agent_forwarding_flag = 1; |
78 | options += strlen(cp); | 78 | options += strlen(cp); |
79 | goto next_option; | 79 | goto next_option; |
80 | } | 80 | } |
81 | cp = "no-X11-forwarding"; | 81 | cp = "no-X11-forwarding"; |
82 | if (strncmp(options, cp, strlen(cp)) == 0) { | 82 | if (strncasecmp(options, cp, strlen(cp)) == 0) { |
83 | packet_send_debug("X11 forwarding disabled."); | 83 | packet_send_debug("X11 forwarding disabled."); |
84 | no_x11_forwarding_flag = 1; | 84 | no_x11_forwarding_flag = 1; |
85 | options += strlen(cp); | 85 | options += strlen(cp); |
86 | goto next_option; | 86 | goto next_option; |
87 | } | 87 | } |
88 | cp = "no-pty"; | 88 | cp = "no-pty"; |
89 | if (strncmp(options, cp, strlen(cp)) == 0) { | 89 | if (strncasecmp(options, cp, strlen(cp)) == 0) { |
90 | packet_send_debug("Pty allocation disabled."); | 90 | packet_send_debug("Pty allocation disabled."); |
91 | no_pty_flag = 1; | 91 | no_pty_flag = 1; |
92 | options += strlen(cp); | 92 | options += strlen(cp); |
93 | goto next_option; | 93 | goto next_option; |
94 | } | 94 | } |
95 | cp = "command=\""; | 95 | cp = "command=\""; |
96 | if (strncmp(options, cp, strlen(cp)) == 0) { | 96 | if (strncasecmp(options, cp, strlen(cp)) == 0) { |
97 | int i; | 97 | int i; |
98 | options += strlen(cp); | 98 | options += strlen(cp); |
99 | forced_command = xmalloc(strlen(options) + 1); | 99 | forced_command = xmalloc(strlen(options) + 1); |
@@ -121,7 +121,7 @@ auth_parse_options(struct passwd *pw, char *options, unsigned long linenum) | |||
121 | goto next_option; | 121 | goto next_option; |
122 | } | 122 | } |
123 | cp = "environment=\""; | 123 | cp = "environment=\""; |
124 | if (strncmp(options, cp, strlen(cp)) == 0) { | 124 | if (strncasecmp(options, cp, strlen(cp)) == 0) { |
125 | int i; | 125 | int i; |
126 | char *s; | 126 | char *s; |
127 | struct envstring *new_envstring; | 127 | struct envstring *new_envstring; |
@@ -156,7 +156,7 @@ auth_parse_options(struct passwd *pw, char *options, unsigned long linenum) | |||
156 | goto next_option; | 156 | goto next_option; |
157 | } | 157 | } |
158 | cp = "from=\""; | 158 | cp = "from=\""; |
159 | if (strncmp(options, cp, strlen(cp)) == 0) { | 159 | if (strncasecmp(options, cp, strlen(cp)) == 0) { |
160 | int mname, mip; | 160 | int mname, mip; |
161 | char *patterns = xmalloc(strlen(options) + 1); | 161 | char *patterns = xmalloc(strlen(options) + 1); |
162 | int i; | 162 | int i; |