1libssh2_knownhost_get(3) libssh2 libssh2_knownhost_get(3)
2
3
4
6 libssh2_knownhost_get - get a known host off the collection of known
7 hosts
8
10 #include <libssh2.h>
11
12 int
13 libssh2_knownhost_get(LIBSSH2_KNOWNHOSTS *hosts,
14 struct libssh2_knownhost **store,
15 struct libssh2_knownhost *prev):
16
18 libssh2_knownhost_get(3) allows an application to iterate over all
19 known hosts in the collection.
20
21 store should point to a pointer that gets filled in to point to the
22 known host data.
23
24 prev is a pointer to a previous 'struct libssh2_knownhost' as returned
25 by a previous invoke of this function, or NULL to get the first entry
26 in the internal collection.
27
29 Returns 0 if everything is fine and information about a host was stored
30 in the store struct.
31
32 Returns 1 if it reached the end of hosts.
33
34 Returns negative values for error
35
37 Added in libssh2 1.2
38
40 libssh2_knownhost_readfile(3) libssh2_knownhost_writefile(3) lib‐
41 ssh2_knownhost_add(3)
42
43
44
45libssh2 28 May 2009 libssh2_knownhost_get(3)