SSH.KnownHosts.Type - charonn0/RB-libssh2 GitHub Wiki

SSH.KnownHosts.Type

Method Signature

 Function Type(Index As Integer) As Integer

Parameters

Name Type Comment
Index Integer The index of the fingerprint whose type you want to get.

Remarks

Returns a bitmask containing one of each of the following:

  • LIBSSH2_KNOWNHOST_TYPE_PLAIN, LIBSSH2_KNOWNHOST_TYPE_SHA1 or LIBSSH2_KNOWNHOST_TYPE_CUSTOM to indicate how the host name is encoded.
  • LIBSSH2_KNOWNHOST_KEYENC_RAW or LIBSSH2_KNOWNHOST_KEYENC_BASE64 to indicate how the key is encoded.
  • LIBSSH2_KNOWNHOST_KEY_RSA1, LIBSSH2_KNOWNHOST_KEY_SSHRSA or LIBSSH2_KNOWNHOST_KEY_SSHDSS to indicate which type of cipher the key is used with.