Lines Matching refs:opts
95 auth_parse_options(struct passwd *pw, char *opts, char *file, u_long linenum)
103 if (!opts)
106 while (*opts && *opts != ' ' && *opts != '\t') {
108 if (strncasecmp(opts, cp, strlen(cp)) == 0) {
110 opts += strlen(cp);
114 if (strncasecmp(opts, cp, strlen(cp)) == 0) {
117 opts += strlen(cp);
121 if (strncasecmp(opts, cp, strlen(cp)) == 0) {
124 opts += strlen(cp);
128 if (strncasecmp(opts, cp, strlen(cp)) == 0) {
131 opts += strlen(cp);
135 if (strncasecmp(opts, cp, strlen(cp)) == 0) {
138 opts += strlen(cp);
142 if (strncasecmp(opts, cp, strlen(cp)) == 0) {
145 opts += strlen(cp);
149 if (strncasecmp(opts, cp, strlen(cp)) == 0) {
150 opts += strlen(cp);
153 forced_command = xmalloc(strlen(opts) + 1);
155 while (*opts) {
156 if (*opts == '"')
158 if (*opts == '\\' && opts[1] == '"') {
159 opts += 2;
163 forced_command[i++] = *opts++;
165 if (!*opts) {
176 opts++;
180 if (strncasecmp(opts, cp, strlen(cp)) == 0) {
181 opts += strlen(cp);
184 authorized_principals = xmalloc(strlen(opts) + 1);
186 while (*opts) {
187 if (*opts == '"')
189 if (*opts == '\\' && opts[1] == '"') {
190 opts += 2;
194 authorized_principals[i++] = *opts++;
196 if (!*opts) {
208 opts++;
213 strncasecmp(opts, cp, strlen(cp)) == 0) {
217 opts += strlen(cp);
218 s = xmalloc(strlen(opts) + 1);
220 while (*opts) {
221 if (*opts == '"')
223 if (*opts == '\\' && opts[1] == '"') {
224 opts += 2;
228 s[i++] = *opts++;
230 if (!*opts) {
241 opts++;
249 if (strncasecmp(opts, cp, strlen(cp)) == 0) {
253 char *patterns = xmalloc(strlen(opts) + 1);
255 opts += strlen(cp);
257 while (*opts) {
258 if (*opts == '"')
260 if (*opts == '\\' && opts[1] == '"') {
261 opts += 2;
265 patterns[i++] = *opts++;
267 if (!*opts) {
276 opts++;
304 if (strncasecmp(opts, cp, strlen(cp)) == 0) {
307 char *patterns = xmalloc(strlen(opts) + 1);
309 opts += strlen(cp);
311 while (*opts) {
312 if (*opts == '"')
314 if (*opts == '\\' && opts[1] == '"') {
315 opts += 2;
319 patterns[i++] = *opts++;
321 if (!*opts) {
330 opts++;
358 if (strncasecmp(opts, cp, strlen(cp)) == 0) {
360 opts += strlen(cp);
361 tun = xmalloc(strlen(opts) + 1);
363 while (*opts) {
364 if (*opts == '"')
366 tun[i++] = *opts++;
368 if (!*opts) {
389 opts++;
397 if (!*opts)
399 if (*opts == ' ' || *opts == '\t')
401 if (*opts != ',')
403 opts++;
412 file, linenum, opts);
414 file, linenum, opts);