libgit2

git_cert_hostkey

Version:

Hostkey information taken from libssh2

Signature

typedef struct git_cert_hostkey { git_cert_t cert_type git_cert_ssh_t type unsigned char[16] hash_md5 unsigned char[20] hash_sha1 };

Members

cert_type

Type of certificate. Here to share the header with git_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.

Versions