Lines Matching defs:opts
98 char *opts = *optsp;
101 if (allow_negate && strncasecmp(opts, "no-", 3) == 0) {
102 opts += 3;
105 if (strncasecmp(opts, opt, opt_len) == 0) {
106 *optsp = opts + opt_len;
121 auth_parse_options(struct passwd *pw, char *opts, char *file, u_long linenum)
129 if (!opts)
132 while (*opts && *opts != ' ' && *opts != '\t') {
133 if ((r = match_flag("cert-authority", 0, &opts, NULL)) != -1) {
137 if ((r = match_flag("restrict", 0, &opts, NULL)) != -1) {
146 if ((r = match_flag("port-forwarding", 1, &opts,
151 if ((r = match_flag("agent-forwarding", 1, &opts,
156 if ((r = match_flag("x11-forwarding", 1, &opts,
161 if ((r = match_flag("pty", 1, &opts,
166 if ((r = match_flag("user-rc", 1, &opts,
172 if (strncasecmp(opts, cp, strlen(cp)) == 0) {
173 opts += strlen(cp);
175 forced_command = xmalloc(strlen(opts) + 1);
177 while (*opts) {
178 if (*opts == '"')
180 if (*opts == '\\' && opts[1] == '"') {
181 opts += 2;
185 forced_command[i++] = *opts++;
187 if (!*opts) {
198 opts++;
202 if (strncasecmp(opts, cp, strlen(cp)) == 0) {
203 opts += strlen(cp);
205 authorized_principals = xmalloc(strlen(opts) + 1);
207 while (*opts) {
208 if (*opts == '"')
210 if (*opts == '\\' && opts[1] == '"') {
211 opts += 2;
215 authorized_principals[i++] = *opts++;
217 if (!*opts) {
229 opts++;
233 if (strncasecmp(opts, cp, strlen(cp)) == 0) {
237 opts += strlen(cp);
238 s = xmalloc(strlen(opts) + 1);
240 while (*opts) {
241 if (*opts == '"')
243 if (*opts == '\\' && opts[1] == '"') {
244 opts += 2;
248 s[i++] = *opts++;
250 if (!*opts) {
259 opts++;
275 if (strncasecmp(opts, cp, strlen(cp)) == 0) {
279 char *patterns = xmalloc(strlen(opts) + 1);
281 opts += strlen(cp);
283 while (*opts) {
284 if (*opts == '"')
286 if (*opts == '\\' && opts[1] == '"') {
287 opts += 2;
291 patterns[i++] = *opts++;
293 if (!*opts) {
302 opts++;
330 if (strncasecmp(opts, cp, strlen(cp)) == 0) {
333 char *patterns = xmalloc(strlen(opts) + 1);
335 opts += strlen(cp);
337 while (*opts) {
338 if (*opts == '"')
340 if (*opts == '\\' && opts[1] == '"') {
341 opts += 2;
345 patterns[i++] = *opts++;
347 if (!*opts) {
356 opts++;
385 if (strncasecmp(opts, cp, strlen(cp)) == 0) {
387 opts += strlen(cp);
388 tun = xmalloc(strlen(opts) + 1);
390 while (*opts) {
391 if (*opts == '"')
393 tun[i++] = *opts++;
395 if (!*opts) {
416 opts++;
424 if (!*opts)
426 if (*opts == ' ' || *opts == '\t')
428 if (*opts != ',')
430 opts++;
439 file, linenum, opts);
441 file, linenum, opts);