Lines Matching refs:ac
90 delete_file(AuthenticationConnection *ac, const char *filename) in delete_file() argument
101 if (ssh_remove_identity(ac, public)) { in delete_file()
117 delete_all(AuthenticationConnection *ac) in delete_all() argument
121 if (ssh_remove_all_identities(ac, 1)) in delete_all()
124 ssh_remove_all_identities(ac, 2); in delete_all()
135 add_file(AuthenticationConnection *ac, const char *filename) in add_file() argument
175 if (ssh_add_identity_constrained(ac, private, comment, lifetime)) { in add_file()
182 } else if (ssh_add_identity(ac, private, comment)) { in add_file()
198 list_identities(AuthenticationConnection *ac, int do_fp) in list_identities() argument
206 for (key = ssh_get_first_identity(ac, &comment, version); in list_identities()
208 key = ssh_get_next_identity(ac, &comment, version)) { in list_identities()
234 lock_agent(AuthenticationConnection *ac, int lock) in lock_agent() argument
251 if (passok && ssh_lock_agent(ac, lock, p1)) { in lock_agent()
269 do_file(AuthenticationConnection *ac, int deleting, char *file) in do_file() argument
272 if (delete_file(ac, file) == -1) in do_file()
275 if (add_file(ac, file) == -1) in do_file()
302 AuthenticationConnection *ac = NULL; in main() local
315 ac = ssh_get_authentication_connection(); in main()
316 if (ac == NULL) { in main()
325 if (list_identities(ac, ch == 'l' ? 1 : 0) == -1) in main()
331 if (lock_agent(ac, ch == 'x' ? 1 : 0) == -1) in main()
339 if (delete_all(ac) == -1) in main()
376 if (do_file(ac, deleting, buf) == -1) in main()
385 if (do_file(ac, deleting, argv[i]) == -1) in main()
392 ssh_close_authentication_connection(ac); in main()