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

NAME

6       libssh2_knownhost_readfile - parse a file of known hosts
7

SYNOPSIS

9       #include <libssh2.h>
10
11       int libssh2_knownhost_readfile(LIBSSH2_KNOWNHOSTS *hosts,
12                                      const char *filename, int type);
13

DESCRIPTION

15       Reads  a  collection of known hosts from a specified file and adds them
16       to the collection of known hosts.
17
18       filename specifies which file to read
19
20       type specifies what file type it is, and LIBSSH2_KNOWNHOST_FILE_OPENSSH
21       is  the  only  currently  supported format. This file is normally found
22       named ~/.ssh/known_hosts
23

RETURN VALUE

25       Returns a regular libssh2 error code, where negative values  are  error
26       codes and 0 indicates success.
27

AVAILABILITY

29       Added in libssh2 1.2
30

SEE ALSO

32       libssh2_knownhost_init(3)    libssh2_knownhost_free(3)   libssh2_known‐
33       host_check(3)
34
35
36
37libssh2 1.2                       28 May 2009    libssh2_knownhost_readfile(3)
Impressum