1libssh2_agent_get_identity(3)   libssh2 manual   libssh2_agent_get_identity(3)
2
3
4

NAME

6       libssh2_agent_get_identity  -  get  a  public key off the collection of
7       public keys managed by ssh-agent
8

SYNOPSIS

10       #include <libssh2.h>
11
12       int libssh2_agent_get_identity(LIBSSH2_AGENT *agent,
13                                      struct libssh2_agent_publickey **store,
14                                      struct libssh2_agent_publickey *prev);
15

DESCRIPTION

17       libssh2_agent_get_identity(3) allows an application to iterate over all
18       public keys in the collection managed by ssh-agent.
19
20       store  should  point  to  a pointer that gets filled in to point to the
21       public key data.
22
23       prev is a pointer to a  previous  'struct  libssh2_agent_publickey'  as
24       returned  by  a  previous  invoke  of this function, or NULL to get the
25       first entry in the internal collection.
26

RETURN VALUE

28       Returns 0 if everything is fine and information about a host was stored
29       in the store struct.
30
31       Returns 1 if it reached the end of public keys.
32
33       Returns negative values for error
34

AVAILABILITY

36       Added in libssh2 1.2
37

SEE ALSO

39       libssh2_agent_list_identities(3) libssh2_agent_userauth(3)
40
41
42
43libssh2 1.2                       23 Dec 2009    libssh2_agent_get_identity(3)
Impressum