Lines Matching refs:certpath
175 char *certpath = NULL, *comment = NULL; in delete_file() local
198 xasprintf(&certpath, "%s-cert.pub", filename); in delete_file()
199 if ((r = sshkey_load_public(certpath, &cert, &comment)) != 0) { in delete_file()
201 error_r(r, "Failed to load certificate \"%s\"", certpath); in delete_file()
207 certpath, filename); in delete_file()
209 if (delete_one(agent_fd, cert, comment, certpath, qflag) == 0) in delete_file()
215 free(certpath); in delete_file()
253 char msg[1024], *certpath = NULL; in add_file() local
404 xasprintf(&certpath, "%s-cert.pub", filename); in add_file()
405 if ((r = sshkey_load_public(certpath, &cert, NULL)) != 0) { in add_file()
408 certpath); in add_file()
414 certpath, filename); in add_file()
435 error_r(r, "Certificate %s (%s) add failed", certpath, in add_file()
441 fprintf(stderr, "Certificate added: %s (%s)\n", certpath, in add_file()
454 free(certpath); in add_file()