Lines Matching refs:opts

99 	char *opts = *optsp;
102 if (allow_negate && strncasecmp(opts, "no-", 3) == 0) {
103 opts += 3;
106 if (strncasecmp(opts, opt, opt_len) == 0) {
107 *optsp = opts + opt_len;
122 auth_parse_options(struct passwd *pw, char *opts, char *file, u_long linenum)
131 if (!opts)
134 while (*opts && *opts != ' ' && *opts != '\t') {
135 if ((r = match_flag("cert-authority", 0, &opts, NULL)) != -1) {
139 if ((r = match_flag("restrict", 0, &opts, NULL)) != -1) {
148 if ((r = match_flag("port-forwarding", 1, &opts,
153 if ((r = match_flag("agent-forwarding", 1, &opts,
158 if ((r = match_flag("x11-forwarding", 1, &opts,
163 if ((r = match_flag("pty", 1, &opts,
168 if ((r = match_flag("user-rc", 1, &opts,
174 if (strncasecmp(opts, cp, strlen(cp)) == 0) {
175 opts += strlen(cp);
177 forced_command = xmalloc(strlen(opts) + 1);
179 while (*opts) {
180 if (*opts == '"')
182 if (*opts == '\\' && opts[1] == '"') {
183 opts += 2;
187 forced_command[i++] = *opts++;
189 if (!*opts) {
200 opts++;
204 if (strncasecmp(opts, cp, strlen(cp)) == 0) {
205 opts += strlen(cp);
207 authorized_principals = xmalloc(strlen(opts) + 1);
209 while (*opts) {
210 if (*opts == '"')
212 if (*opts == '\\' && opts[1] == '"') {
213 opts += 2;
217 authorized_principals[i++] = *opts++;
219 if (!*opts) {
231 opts++;
235 if (strncasecmp(opts, cp, strlen(cp)) == 0) {
239 opts += strlen(cp);
240 s = xmalloc(strlen(opts) + 1);
242 while (*opts) {
243 if (*opts == '"')
245 if (*opts == '\\' && opts[1] == '"') {
246 opts += 2;
250 s[i++] = *opts++;
252 if (!*opts) {
261 opts++;
277 if (strncasecmp(opts, cp, strlen(cp)) == 0) {
281 char *patterns = xmalloc(strlen(opts) + 1);
283 opts += strlen(cp);
285 while (*opts) {
286 if (*opts == '"')
288 if (*opts == '\\' && opts[1] == '"') {
289 opts += 2;
293 patterns[i++] = *opts++;
295 if (!*opts) {
304 opts++;
332 if (strncasecmp(opts, cp, strlen(cp)) == 0) {
335 char *patterns = xmalloc(strlen(opts) + 1);
337 opts += strlen(cp);
339 while (*opts) {
340 if (*opts == '"')
342 if (*opts == '\\' && opts[1] == '"') {
343 opts += 2;
347 patterns[i++] = *opts++;
349 if (!*opts) {
358 opts++;
387 if (strncasecmp(opts, cp, strlen(cp)) == 0) {
389 opts += strlen(cp);
390 tun = xmalloc(strlen(opts) + 1);
392 while (*opts) {
393 if (*opts == '"')
395 tun[i++] = *opts++;
397 if (!*opts) {
418 opts++;
426 if (!*opts)
428 if (*opts == ' ' || *opts == '\t')
430 if (*opts != ',')
432 opts++;
441 file, linenum, opts);
443 file, linenum, opts);