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.
 
 
 
 

27 lines
988 B

  1. .TH libssh2_hostkey_hash 3 "1 Jun 2007" "libssh2 0.15" "libssh2 manual"
  2. .SH NAME
  3. libssh2_hostkey_hash - return a hash of the remote host's key
  4. .SH SYNOPSIS
  5. #include <libssh2.h>
  6. const char *
  7. libssh2_hostkey_hash(LIBSSH2_SESSION *session, int hash_type);
  8. .SH DESCRIPTION
  9. \fIsession\fP - Session instance as returned by
  10. .BR libssh2_session_init_ex(3)
  11. \fIhash_type\fP - One of: \fBLIBSSH2_HOSTKEY_HASH_MD5\fP,
  12. \fBLIBSSH2_HOSTKEY_HASH_SHA1\fP or \fBLIBSSH2_HOSTKEY_HASH_SHA256\fP.
  13. Returns the computed digest of the remote system's hostkey. The length of
  14. the returned string is hash_type specific (e.g. 16 bytes for MD5,
  15. 20 bytes for SHA1, 32 bytes for SHA256).
  16. .SH RETURN VALUE
  17. Computed hostkey hash value, or NULL if the information is not available
  18. (either the session has not yet been started up, or the requested hash
  19. algorithm was not available). The hash consists of raw binary bytes, not hex
  20. digits, so it is not directly printable.
  21. .SH SEE ALSO
  22. .BR libssh2_session_init_ex(3)