libgit2

git_transport_certificate_check_cb

Version:

Callback for the user's custom certificate checks.

Signature

typedef int git_transport_certificate_check_cb(git_cert *cert, int valid, const char *host, void *payload);

Parameters

In
cert

The host certificate

int
In
valid

Whether the libgit2 checks (OpenSSL or WinHTTP) think this certificate is valid

const char *
In
host

Hostname of the host libgit2 connected to

void *
In
payload

Payload provided by the caller

Returns

int

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

Versions