1libssh2_agent_init(3) libssh2 manual libssh2_agent_init(3)
2
3
4
6 libssh2_agent_init - init an ssh-agent handle
7
9 #include <libssh2.h>
10
11 LIBSSH2_AGENT *libssh2_agent_init(LIBSSH2_SESSION *session);
12
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
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
28 Added in libssh2 1.2
29
31 libssh2_agent_connect(3) libssh2_agent_free(3)
32
33
34
35libssh2 1.2 23 Dec 2009 libssh2_agent_init(3)