Lines Matching refs:idlist
258 struct ssh_identitylist *idlist; in add_file() local
341 (r = ssh_fetch_identitylist(agent_fd, &idlist)) == 0) { in add_file()
342 for (i = 0; i < idlist->nkeys; i++) { in add_file()
343 if (!sshkey_equal_public(idlist->keys[i], private)) in add_file()
345 left = sshkey_signatures_left(idlist->keys[i]); in add_file()
360 ssh_free_identitylist(idlist); in add_file()
363 ssh_free_identitylist(idlist); in add_file()
536 struct ssh_identitylist *idlist; in list_identities() local
540 if ((r = ssh_fetch_identitylist(agent_fd, &idlist)) != 0) { in list_identities()
548 for (i = 0; i < idlist->nkeys; i++) { in list_identities()
550 fp = sshkey_fingerprint(idlist->keys[i], in list_identities()
552 printf("%u %s %s (%s)\n", sshkey_size(idlist->keys[i]), in list_identities()
553 fp == NULL ? "(null)" : fp, idlist->comments[i], in list_identities()
554 sshkey_type(idlist->keys[i])); in list_identities()
557 if ((r = sshkey_write(idlist->keys[i], stdout)) != 0) { in list_identities()
562 fprintf(stdout, " %s", idlist->comments[i]); in list_identities()
563 left = sshkey_signatures_left(idlist->keys[i]); in list_identities()
570 ssh_free_identitylist(idlist); in list_identities()