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