Callback for the user's custom certificate checks.
@param cert The host certificate
@param valid Whether the libgit2 checks (OpenSSL or WinHTTP) think
this certificate is valid
@param host Hostname of the host libgit2 connected to
@param payload Payload provided by the caller
@return 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
Callback for the user's custom certificate checks.
@param cert The host certificate @param valid Whether the libgit2 checks (OpenSSL or WinHTTP) think this certificate is valid @param host Hostname of the host libgit2 connected to @param payload Payload provided by the caller @return 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