1libssh2_knownhost_writefile(3)      libssh2     libssh2_knownhost_writefile(3)
2
3
4

NAME

6       libssh2_knownhost_writefile  -  write  a collection of known hosts to a
7       file
8

SYNOPSIS

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

DESCRIPTION

17       Writes all the known hosts to the specified file  using  the  specified
18       file format.
19
20       filename specifies what filename to create
21
22       type specifies what file type it is, and LIBSSH2_KNOWNHOST_FILE_OPENSSH
23       is the only currently supported format.
24

RETURN VALUE

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

AVAILABILITY

30       Added in libssh2 1.2
31

SEE ALSO

33       libssh2_knownhost_readfile(3) libssh2_knownhost_add(3)
34
35
36
37libssh2                           28 May 2009   libssh2_knownhost_writefile(3)
Impressum