Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/AnonR/smanonr..../opt/imh-pyth.../include/git2
File: proxy.h
/*
[0] Fix | Delete
* Copyright (C) the libgit2 contributors. All rights reserved.
[1] Fix | Delete
*
[2] Fix | Delete
* This file is part of libgit2, distributed under the GNU GPL v2 with
[3] Fix | Delete
* a Linking Exception. For full terms see the included COPYING file.
[4] Fix | Delete
*/
[5] Fix | Delete
#ifndef INCLUDE_git_proxy_h__
[6] Fix | Delete
#define INCLUDE_git_proxy_h__
[7] Fix | Delete
[8] Fix | Delete
#include "common.h"
[9] Fix | Delete
[10] Fix | Delete
#include "cert.h"
[11] Fix | Delete
#include "credential.h"
[12] Fix | Delete
[13] Fix | Delete
GIT_BEGIN_DECL
[14] Fix | Delete
[15] Fix | Delete
/**
[16] Fix | Delete
* The type of proxy to use.
[17] Fix | Delete
*/
[18] Fix | Delete
typedef enum {
[19] Fix | Delete
/**
[20] Fix | Delete
* Do not attempt to connect through a proxy
[21] Fix | Delete
*
[22] Fix | Delete
* If built against libcurl, it itself may attempt to connect
[23] Fix | Delete
* to a proxy if the environment variables specify it.
[24] Fix | Delete
*/
[25] Fix | Delete
GIT_PROXY_NONE,
[26] Fix | Delete
/**
[27] Fix | Delete
* Try to auto-detect the proxy from the git configuration.
[28] Fix | Delete
*/
[29] Fix | Delete
GIT_PROXY_AUTO,
[30] Fix | Delete
/**
[31] Fix | Delete
* Connect via the URL given in the options
[32] Fix | Delete
*/
[33] Fix | Delete
GIT_PROXY_SPECIFIED,
[34] Fix | Delete
} git_proxy_t;
[35] Fix | Delete
[36] Fix | Delete
/**
[37] Fix | Delete
* Options for connecting through a proxy
[38] Fix | Delete
*
[39] Fix | Delete
* Note that not all types may be supported, depending on the platform
[40] Fix | Delete
* and compilation options.
[41] Fix | Delete
*/
[42] Fix | Delete
typedef struct {
[43] Fix | Delete
unsigned int version;
[44] Fix | Delete
[45] Fix | Delete
/**
[46] Fix | Delete
* The type of proxy to use, by URL, auto-detect.
[47] Fix | Delete
*/
[48] Fix | Delete
git_proxy_t type;
[49] Fix | Delete
[50] Fix | Delete
/**
[51] Fix | Delete
* The URL of the proxy.
[52] Fix | Delete
*/
[53] Fix | Delete
const char *url;
[54] Fix | Delete
[55] Fix | Delete
/**
[56] Fix | Delete
* This will be called if the remote host requires
[57] Fix | Delete
* authentication in order to connect to it.
[58] Fix | Delete
*
[59] Fix | Delete
* Returning GIT_PASSTHROUGH will make libgit2 behave as
[60] Fix | Delete
* though this field isn't set.
[61] Fix | Delete
*/
[62] Fix | Delete
git_credential_acquire_cb credentials;
[63] Fix | Delete
[64] Fix | Delete
/**
[65] Fix | Delete
* If cert verification fails, this will be called to let the
[66] Fix | Delete
* user make the final decision of whether to allow the
[67] Fix | Delete
* connection to proceed. Returns 0 to allow the connection
[68] Fix | Delete
* or a negative value to indicate an error.
[69] Fix | Delete
*/
[70] Fix | Delete
git_transport_certificate_check_cb certificate_check;
[71] Fix | Delete
[72] Fix | Delete
/**
[73] Fix | Delete
* Payload to be provided to the credentials and certificate
[74] Fix | Delete
* check callbacks.
[75] Fix | Delete
*/
[76] Fix | Delete
void *payload;
[77] Fix | Delete
} git_proxy_options;
[78] Fix | Delete
[79] Fix | Delete
#define GIT_PROXY_OPTIONS_VERSION 1
[80] Fix | Delete
#define GIT_PROXY_OPTIONS_INIT {GIT_PROXY_OPTIONS_VERSION}
[81] Fix | Delete
[82] Fix | Delete
/**
[83] Fix | Delete
* Initialize git_proxy_options structure
[84] Fix | Delete
*
[85] Fix | Delete
* Initializes a `git_proxy_options` with default values. Equivalent to
[86] Fix | Delete
* creating an instance with `GIT_PROXY_OPTIONS_INIT`.
[87] Fix | Delete
*
[88] Fix | Delete
* @param opts The `git_proxy_options` struct to initialize.
[89] Fix | Delete
* @param version The struct version; pass `GIT_PROXY_OPTIONS_VERSION`.
[90] Fix | Delete
* @return Zero on success; -1 on failure.
[91] Fix | Delete
*/
[92] Fix | Delete
GIT_EXTERN(int) git_proxy_options_init(git_proxy_options *opts, unsigned int version);
[93] Fix | Delete
[94] Fix | Delete
GIT_END_DECL
[95] Fix | Delete
[96] Fix | Delete
#endif
[97] Fix | Delete
[98] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function