Callback for the user's custom certificate checks.
Whether the libgit2 checks (OpenSSL or WinHTTP) think this certificate is valid
Hostname of the host libgit2 connected to
Payload provided by the caller
0 to proceed with the connection, < 0 to fail the connection or > 0 to indicate that the callback refused to act and that the existing validity determination should be honored