libssh2_knownhost_init.3 849 B

12345678910111213141516171819202122232425
  1. .\"
  2. .\" Copyright (c) 2009 by Daniel Stenberg
  3. .\"
  4. .TH libssh2_knownhost_init 3 "28 May 2009" "libssh2 1.2" "libssh2 manual"
  5. .SH NAME
  6. libssh2_knownhost_init - init a collection of known hosts
  7. .SH SYNOPSIS
  8. #include <libssh2.h>
  9. LIBSSH2_KNOWNHOSTS *libssh2_knownhost_init(LIBSSH2_SESSION *session);
  10. .SH DESCRIPTION
  11. Init a collection of known hosts for this session. Returns the handle to an
  12. internal representation of a known host collection.
  13. Call \fBlibssh2_knownhost_free(3)\fP to free the collection again after you're
  14. doing using it.
  15. .SH RETURN VALUE
  16. Returns a handle pointer or NULL if something went wrong. The returned handle
  17. is used as input to all other known host related functions libssh2 provides.
  18. .SH AVAILABILITY
  19. Added in libssh2 1.2
  20. .SH SEE ALSO
  21. .BR libssh2_knownhost_free(3)
  22. .BR libssh2_knownhost_add(3)
  23. .BR libssh2_knownhost_check(3)