libssh2_knownhost_writefile.3 (869B)
1.\" 2.\" Copyright (c) 2009 by Daniel Stenberg 3.\" 4.TH libssh2_knownhost_writefile 3 "28 May 2009" "libssh2" "libssh2" 5.SH NAME 6libssh2_knownhost_writefile - write a collection of known hosts to a file 7.SH SYNOPSIS 8.nf 9#include <libssh2.h> 10 11int 12libssh2_knownhost_writefile(LIBSSH2_KNOWNHOSTS *hosts, 13 const char *filename, int type); 14.fi 15.SH DESCRIPTION 16Writes all the known hosts to the specified file using the specified file 17format. 18 19\fIfilename\fP specifies what filename to create 20 21\fItype\fP specifies what file type it is, and 22\fILIBSSH2_KNOWNHOST_FILE_OPENSSH\fP is the only currently supported 23format. 24.SH RETURN VALUE 25Returns a regular libssh2 error code, where negative values are error codes 26and 0 indicates success. 27.SH AVAILABILITY 28Added in libssh2 1.2 29.SH SEE ALSO 30.BR libssh2_knownhost_readfile(3) 31.BR libssh2_knownhost_add(3)