libgit2

git_proxy_options

Version:

Options for connecting through a proxy

Note that not all types may be supported, depending on the platform and compilation options.

Signature

typedef struct git_proxy_options { unsigned int version git_proxy_t type const char *url git_credential_acquire_cb credentials git_transport_certificate_check_cb certificate_check void *payload };

Members

unsigned int
version
type

The type of proxy to use, by URL, auto-detect.

const char *
url

The URL of the proxy.

credentials

This will be called if the remote host requires authentication in order to connect to it.

Returning GIT_PASSTHROUGH will make libgit2 behave as though this field isn't set.

certificate_check

If cert verification fails, this will be called to let the user make the final decision of whether to allow the connection to proceed. Returns 0 to allow the connection or a negative value to indicate an error.

void *
payload

Payload to be provided to the credentials and certificate check callbacks.

Parameter To

Versions