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

NAME

6       libssh2_knownhost_readline - read a known host line
7

SYNOPSIS

9       #include <libssh2.h>
10
11       int libssh2_knownhost_readline(LIBSSH2_KNOWNHOSTS *hosts,
12                                      const char *line, size_t len, int type):
13

DESCRIPTION

15       Tell  libssh2  to  read  a buffer as it if is a line from a known hosts
16       file.
17
18       line points to the start of the line
19
20       len is the length of the line in bytes
21
22       type specifies what file type it is, and LIBSSH2_KNOWNHOST_FILE_OPENSSH
23       is  the  only  currently  supported format. This file is normally found
24       named ~/.ssh/known_hosts
25

RETURN VALUE

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

AVAILABILITY

31       Added in libssh2 1.2
32

SEE ALSO

34       libssh2_knownhost_get(3)  libssh2_knownhost_writeline(3) libssh2_known‐
35       host_readfile(3)
36
37
38
39libssh2 1.2                       28 May 2009    libssh2_knownhost_readline(3)
Impressum