1 .\" $Id: libssh2_hostkey_hash.3,v 1.1 2007/06/14 14:56:32 jehousley Exp $
3 .TH libssh2_hostkey_hash 3 "1 Jun 2007" "libssh2 0.15" "libssh2 manual"
5 libssh2_hostkey_hash - return a hash of the remote host's key
10 libssh2_hostkey_hash(LIBSSH2_SESSION *session, int hash_type);
13 \fIsession\fP - Session instance as returned by
14 .BR libssh2_session_init(3)
16 \fIhash_type\fP - One of: \fBLIBSSH2_HOSTKEY_HASH_MD5\fP or
17 \fBLIBSSH2_HOSTKEY_HASH_SHA1\fP.
19 Returns the computed digest of the remote system's hostkey. The length of
20 the returned string is hash_type specific (e.g. 16 bytes for MD5,
24 Computed hostkey hash value. or NULL if the session has not yet been started
25 up. (The hash consists of raw binary bytes, not hex digits, so is not
29 .BR libssh2_session_init(3)