libgit2

git_cert_hostkey

Version:

Hostkey information taken from libssh2

Signature

typedef struct git_cert_hostkey { git_cert parent git_cert_ssh_t type unsigned char[16] hash_md5 unsigned char[20] hash_sha1 unsigned char[32] hash_sha256 };

Members

parent

The parent cert

type

A hostkey type from libssh2, either GIT_CERT_SSH_MD5 or GIT_CERT_SSH_SHA1

unsigned char[16]
hash_md5

Hostkey hash. If type has GIT_CERT_SSH_MD5 set, this will have the MD5 hash of the hostkey.

unsigned char[20]
hash_sha1

Hostkey hash. If type has GIT_CERT_SSH_SHA1 set, this will have the SHA-1 hash of the hostkey.

unsigned char[32]
hash_sha256

Hostkey hash. If type has GIT_CERT_SSH_SHA256 set, this will have the SHA-256 hash of the hostkey.

Versions