1libssh2_knownhost_writefile(3) libssh2 manual libssh2_knownhost_writefile(3)
2
3
4
6 libssh2_knownhost_writefile - write a collection of known hosts to a
7 file
8
10 #include <libssh2.h>
11
12 int libssh2_knownhost_writefile(LIBSSH2_KNOWNHOSTS *hosts,
13 const char *filename, int type);
14
16 Writes all the known hosts to the specified file using the specified
17 file format.
18
19 filename specifies what filename to create
20
21 type specifies what file type it is, and LIBSSH2_KNOWNHOST_FILE_OPENSSH
22 is the only currently supported format.
23
25 Returns a regular libssh2 error code, where negative values are error
26 codes and 0 indicates success.
27
29 Added in libssh2 1.2
30
32 libssh2_knownhost_readfile(3) libssh2_knownhost_add(3)
33
34
35
36
37libssh2 1.2 28 May 2009 libssh2_knownhost_writefile(3)