summaryrefslogtreecommitdiff
path: root/authfd.h
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2019-09-03 08:29:15 +0000
committerDamien Miller <djm@mindrot.org>2019-09-03 18:39:31 +1000
commit06af3583f46e2c327fdd44d8a95b8b4e8dfd8db5 (patch)
treec74d33447527f6ed3c095143c1eb9952df92c8fc /authfd.h
parent2ab5a8464870cc4b29ddbe849bbbc255729437bf (diff)
upstream: authfd: add function to check if key is in agent
This commit adds a helper function which allows the caller to check if a given public key is present in ssh-agent. work by Sebastian Kinne; ok markus@ OpenBSD-Commit-ID: d43c5826353e1fdc1af71eb42961b30782c7bd13
Diffstat (limited to 'authfd.h')
-rw-r--r--authfd.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/authfd.h b/authfd.h
index 060bed63f..579076504 100644
--- a/authfd.h
+++ b/authfd.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: authfd.h,v 1.45 2019/06/21 04:21:04 djm Exp $ */ 1/* $OpenBSD: authfd.h,v 1.46 2019/09/03 08:29:15 djm Exp $ */
2 2
3/* 3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi> 4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -31,6 +31,7 @@ int ssh_fetch_identitylist(int sock, struct ssh_identitylist **idlp);
31void ssh_free_identitylist(struct ssh_identitylist *idl); 31void ssh_free_identitylist(struct ssh_identitylist *idl);
32int ssh_add_identity_constrained(int sock, struct sshkey *key, 32int ssh_add_identity_constrained(int sock, struct sshkey *key,
33 const char *comment, u_int life, u_int confirm, u_int maxsign); 33 const char *comment, u_int life, u_int confirm, u_int maxsign);
34int ssh_agent_has_key(int sock, struct sshkey *key);
34int ssh_remove_identity(int sock, struct sshkey *key); 35int ssh_remove_identity(int sock, struct sshkey *key);
35int ssh_update_card(int sock, int add, const char *reader_id, 36int ssh_update_card(int sock, int add, const char *reader_id,
36 const char *pin, u_int life, u_int confirm); 37 const char *pin, u_int life, u_int confirm);