libgit2

git_cert_t

Version:

Type of host certificate structure that is passed to the check callback

Values

GIT_CERT_NONE
0

No information about the certificate is available. This may happen when using curl.

GIT_CERT_X509
1

The data argument to the callback will be a pointer to the DER-encoded data.

GIT_CERT_HOSTKEY_LIBSSH2
2

The data argument to the callback will be a pointer to a git_cert_hostkey structure.

GIT_CERT_STRARRAY
3

The data argument to the callback will be a pointer to a git_strarray with name:content strings containing information about the certificate. This is used when using curl.

Versions