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.
 
 
 
 

22 lines
697 B

  1. .TH libssh2_session_hostkey 3 "1 Jun 2007" "libssh2 0.15" "libssh2 manual"
  2. .SH NAME
  3. libssh2_session_hostkey - get the remote key
  4. .SH SYNOPSIS
  5. #include <libssh2.h>
  6. const char *libssh2_session_hostkey(LIBSSH2_SESSION *session,
  7. size_t *len, int *type);
  8. .SH DESCRIPTION
  9. Returns a pointer to the current host key, the value \fIlen\fP points to will
  10. get the length of the key.
  11. The value \fItype\fP points to the type of hostkey which is one of:
  12. LIBSSH2_HOSTKEY_TYPE_RSA, LIBSSH2_HOSTKEY_TYPE_DSS, or
  13. LIBSSH2_HOSTKEY_TYPE_UNKNOWN.
  14. .SH RETURN VALUE
  15. A pointer, or NULL if something went wrong.
  16. .SH SEE ALSO
  17. .BR libssh2_knownhost_check(3)
  18. .BR libssh2_knownhost_add(3)