Lines Matching defs:cp
204 char line[SSH_MAX_PUBKEY_BYTES], *cp, *ep, *line_opts;
216 for (cp = line; *cp == ' ' || *cp == '\t'; cp++)
219 if ((ep = strchr(cp, '#')) != NULL)
221 if (!*cp || *cp == '\n')
224 ep = cp + strlen(cp) - 1;
225 while (ep > cp && (*ep == '\n' || *ep == ' ' || *ep == '\t'))
232 if ((ep = strrchr(cp, ' ')) != NULL ||
233 (ep = strrchr(cp, '\t')) != NULL) {
236 line_opts = cp;
237 cp = ep;
240 if (strcmp(cp, cert->principals[i]) == 0) {
284 char *cp, *key_options = NULL;
289 for (cp = line; *cp == ' ' || *cp == '\t'; cp++)
291 if (!*cp || *cp == '\n' || *cp == '#')
294 if (key_read(found, &cp) != 1) {
297 debug2("user_key_allowed: check options: '%s'", cp);
298 key_options = cp;
299 for (; *cp && (quoted || (*cp != ' ' && *cp != '\t')); cp++) {
300 if (*cp == '\\' && cp[1] == '"')
301 cp++; /* Skip both */
302 else if (*cp == '"')
306 for (; *cp == ' ' || *cp == '\t'; cp++)
308 if (key_read(found, &cp) != 1) {
309 debug2("user_key_allowed: advance: '%s'", cp);