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 git_cert_ssh_raw_type_t raw_type const char *hostkey size_t hostkey_len };

Members

parent

The parent cert

type

A bitmask containing the available fields.

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.

raw_type

Raw hostkey type. If type has GIT_CERT_SSH_RAW set, this will have the type of the raw hostkey.

const char *
hostkey

Pointer to the raw hostkey. If type has GIT_CERT_SSH_RAW set, this will have the raw contents of the hostkey.

size_t
hostkey_len

Raw hostkey length. If type has GIT_CERT_SSH_RAW set, this will have the length of the raw contents of the hostkey.

Versions