Callback for the user's custom certificate checks.
The host certificate
Whether the libgit2 checks (OpenSSL or WinHTTP) think this certificate is valid
Hostname of the host libgit2 connected to
Payload provided by the caller