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

NAME

6       libssh2_agent_init - init an ssh-agent handle
7

SYNOPSIS

9       #include <libssh2.h>
10
11       LIBSSH2_AGENT *libssh2_agent_init(LIBSSH2_SESSION *session);
12

DESCRIPTION

14       Init an ssh-agent handle. Returns the handle to an internal representa‐
15       tion of an ssh-agent connection.  After the successful  initialization,
16       an  application  can call libssh2_agent_connect(3) to connect to a run‐
17       ning ssh-agent.
18
19       Call libssh2_agent_free(3) to free the handle again after you're  doing
20       using it.
21

RETURN VALUE

23       Returns  a handle pointer or NULL if something went wrong. The returned
24       handle is used as input to all other ssh-agent related  functions  lib‐
25       ssh2 provides.
26

AVAILABILITY

28       Added in libssh2 1.2
29

SEE ALSO

31       libssh2_agent_connect(3) libssh2_agent_free(3)
32
33
34
35libssh2 1.2                       23 Dec 2009            libssh2_agent_init(3)
Impressum