Home | History | Annotate | Download | only in openssh

Lines Matching defs:file

55 /* Save a key blob to a file */
140 * Loads the public part of the ssh v1 key file. Returns NULL if an error was
141 * encountered (the file does not exist or is not readable), and the key
177 * permissions of the file. if the key owned by a different user,
185 error("@ WARNING: UNPROTECTED PRIVATE KEY FILE! @");
289 FILE *f;
310 strcmp(cp, "SSH PRIVATE KEY FILE") == 0)
333 /* load public key from ssh v1 private or any pubkey file */
338 char file[PATH_MAX];
346 /* XXX should load file once and attempt to parse each format */
391 if ((strlcpy(file, filename, sizeof file) < sizeof(file)) &&
392 (strlcat(file, ".pub", sizeof file) < sizeof(file)) &&
393 (r = sshkey_try_load_public(pub, file, commentp)) == 0) {
408 char *file = NULL;
413 if (asprintf(&file, "%s-cert.pub", filename) == -1)
419 if ((r = sshkey_try_load_public(pub, file, NULL)) != 0)
427 if (file != NULL)
428 free(file);
483 * Returns success if the specified "key" is listed in the file "filename",
494 FILE *f;
563 * If the file is not a KRL or we can't handle KRLs then attempt to
564 * parse the file as a flat list of keys.