Lines Matching refs:idlist
206 struct ssh_identitylist *idlist; in add_file() local
289 (r = ssh_fetch_identitylist(agent_fd, &idlist)) == 0) { in add_file()
290 for (i = 0; i < idlist->nkeys; i++) { in add_file()
291 if (!sshkey_equal_public(idlist->keys[i], private)) in add_file()
293 left = sshkey_signatures_left(idlist->keys[i]); in add_file()
308 ssh_free_identitylist(idlist); in add_file()
311 ssh_free_identitylist(idlist); in add_file()
470 struct ssh_identitylist *idlist; in list_identities() local
474 if ((r = ssh_fetch_identitylist(agent_fd, &idlist)) != 0) { in list_identities()
482 for (i = 0; i < idlist->nkeys; i++) { in list_identities()
484 fp = sshkey_fingerprint(idlist->keys[i], in list_identities()
486 printf("%u %s %s (%s)\n", sshkey_size(idlist->keys[i]), in list_identities()
487 fp == NULL ? "(null)" : fp, idlist->comments[i], in list_identities()
488 sshkey_type(idlist->keys[i])); in list_identities()
491 if ((r = sshkey_write(idlist->keys[i], stdout)) != 0) { in list_identities()
496 fprintf(stdout, " %s", idlist->comments[i]); in list_identities()
497 left = sshkey_signatures_left(idlist->keys[i]); in list_identities()
504 ssh_free_identitylist(idlist); in list_identities()