libgit2

git_transport_smart_certificate_check

Version:

Call the certificate check for this transport.

Signature

int git_transport_smart_certificate_check(git_transport *transport, git_cert *cert, int valid, const char *hostname);

Parameters

In
transport

a smart transport

In
cert

the certificate to pass to the caller

int
In
valid

whether we believe the certificate is valid

const char *
In
hostname

the hostname we connected to

Returns

int

the return value of the callback: 0 for no error, GIT_PASSTHROUGH to indicate that there is no callback registered (or the callback refused to validate the certificate and callers should behave as if no callback was set), or < 0 for an error

Versions