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
991 B

  1. .\"
  2. .\" Copyright (c) 2009-2011 by Daniel Stenberg
  3. .\"
  4. .TH libssh2_knownhost_readfile 3 "28 May 2009" "libssh2 1.2" "libssh2 manual"
  5. .SH NAME
  6. libssh2_knownhost_readfile - parse a file of known hosts
  7. .SH SYNOPSIS
  8. #include <libssh2.h>
  9. int libssh2_knownhost_readfile(LIBSSH2_KNOWNHOSTS *hosts,
  10. const char *filename, int type);
  11. .SH DESCRIPTION
  12. Reads a collection of known hosts from a specified file and adds them to the
  13. collection of known hosts.
  14. \fIfilename\fP specifies which file to read
  15. \fItype\fP specifies what file type it is, and
  16. \fILIBSSH2_KNOWNHOST_FILE_OPENSSH\fP is the only currently supported
  17. format. This file is normally found named ~/.ssh/known_hosts
  18. .SH RETURN VALUE
  19. Returns a negative value, a regular libssh2 error code for errors, or a
  20. positive number as number of parsed known hosts in the file.
  21. .SH AVAILABILITY
  22. Added in libssh2 1.2
  23. .SH SEE ALSO
  24. .BR libssh2_knownhost_init(3)
  25. .BR libssh2_knownhost_free(3)
  26. .BR libssh2_knownhost_check(3)