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