git_transport_smart_certificate_check

Call the certificate check for this transport.

package extern (C) nothrow @nogc
int
git_transport_smart_certificate_check

Parameters

transport .git_transport*

a smart transport

cert libgit2_d.types.git_cert*

the certificate to pass to the caller

valid int

whether we believe the certificate is valid

hostname const(char)*

the hostname we connected to

Return Value

Type: int

the return value of the callback: 0 for no error, git_error_code.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

Meta