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

NAME

6       libssh2_knownhost_get  -  get  a known host off the collection of known
7       hosts
8

SYNOPSIS

10       #include <libssh2.h>
11
12       int libssh2_knownhost_get(LIBSSH2_KNOWNHOSTS *hosts,
13                                 struct libssh2_knownhost **store,
14                                 struct libssh2_knownhost *prev):
15

DESCRIPTION

17       libssh2_knownhost_get(3) allows an  application  to  iterate  over  all
18       known hosts in the collection.
19
20       store  should  point  to  a pointer that gets filled in to point to the
21       known host data.
22
23       prev is a pointer to a previous 'struct libssh2_knownhost' as  returned
24       by  a  previous invoke of this function, or NULL to get the first entry
25       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 hosts.
32
33       Returns negative values for error
34

AVAILABILITY

36       Added in libssh2 1.2
37

SEE ALSO

39       libssh2_knownhost_readfile(3)    libssh2_knownhost_writefile(3)    lib‐
40       ssh2_knownhost_add(3)
41
42
43
44libssh2 1.2                       28 May 2009         libssh2_knownhost_get(3)
Impressum