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.
 
 
 
 

31 lines
979 B

  1. .\"
  2. .\" Copyright (c) 2009 by Daniel Stenberg
  3. .\"
  4. .TH libssh2_knownhost_readline 3 "28 May 2009" "libssh2 1.2" "libssh2 manual"
  5. .SH NAME
  6. libssh2_knownhost_readline - read a known host line
  7. .SH SYNOPSIS
  8. #include <libssh2.h>
  9. int libssh2_knownhost_readline(LIBSSH2_KNOWNHOSTS *hosts,
  10. const char *line, size_t len, int type):
  11. .SH DESCRIPTION
  12. Tell libssh2 to read a buffer as it if is a line from a known hosts file.
  13. \fIline\fP points to the start of the line
  14. \fIlen\fP is the length of the line in bytes
  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 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_get(3)
  25. .BR libssh2_knownhost_writeline(3)
  26. .BR libssh2_knownhost_readfile(3)