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.
 
 
 
 

36 lines
1.1 KiB

  1. .\"
  2. .\" Copyright (c) 2009 by Daniel Stenberg
  3. .\"
  4. .TH libssh2_knownhost_get 3 "28 May 2009" "libssh2 1.2" "libssh2 manual"
  5. .SH NAME
  6. libssh2_knownhost_get - get a known host off the collection of known hosts
  7. .SH SYNOPSIS
  8. #include <libssh2.h>
  9. int libssh2_knownhost_get(LIBSSH2_KNOWNHOSTS *hosts,
  10. struct libssh2_knownhost **store,
  11. struct libssh2_knownhost *prev):
  12. .SH DESCRIPTION
  13. \fIlibssh2_knownhost_get(3)\fP allows an application to iterate over all known
  14. hosts in the collection.
  15. \fIstore\fP should point to a pointer that gets filled in to point to the
  16. known host data.
  17. \fIprev\fP is a pointer to a previous 'struct libssh2_knownhost' as returned
  18. by a previous invoke of this function, or NULL to get the first entry in the
  19. internal collection.
  20. .SH RETURN VALUE
  21. Returns 0 if everything is fine and information about a host was stored in
  22. the \fIstore\fP struct.
  23. Returns 1 if it reached the end of hosts.
  24. Returns negative values for error
  25. .SH AVAILABILITY
  26. Added in libssh2 1.2
  27. .SH SEE ALSO
  28. .BR libssh2_knownhost_readfile(3)
  29. .BR libssh2_knownhost_writefile(3)
  30. .BR libssh2_knownhost_add(3)