geom_gate userland utility improvements
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

30 lines
877 B

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