1libssh2_agent_init(3) libssh2 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 *
12 libssh2_agent_init(LIBSSH2_SESSION *session);
13
15 Init an ssh-agent handle. Returns the handle to an internal representa‐
16 tion of an ssh-agent connection. After the successful initialization,
17 an application can call libssh2_agent_connect(3) to connect to a run‐
18 ning ssh-agent.
19
20 Call libssh2_agent_free(3) to free the handle again after you are doing
21 using it.
22
24 Returns a handle pointer or NULL if something went wrong. The returned
25 handle is used as input to all other ssh-agent related functions lib‐
26 ssh2 provides.
27
29 Added in libssh2 1.2
30
32 libssh2_agent_connect(3) libssh2_agent_free(3)
33
34
35
36libssh2 23 Dec 2009 libssh2_agent_init(3)