diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2015-06-07 15:42:13 +0300 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2015-06-24 18:26:36 +0300 |
commit | 1376e784c63bc63492a9ba04d5e1f07654deba60 (patch) | |
tree | d0ceb3e6a60f4c47fe6bab32a373e9b5b813fc87 /include | |
parent | ede517bc5322022850854f22906be934736b4f57 (diff) |
stream: add support for setting a proxy
If the stream claims to support this feature, we can let the transport
set the proxy.
We also set HTTPPROXYTUNNEL option so curl can create a tunnel through
the proxy which lets us create our own TLS session (if needed).
Diffstat (limited to 'include')
-rw-r--r-- | include/git2/sys/stream.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/git2/sys/stream.h b/include/git2/sys/stream.h index c22179fab..55a714bbb 100644 --- a/include/git2/sys/stream.h +++ b/include/git2/sys/stream.h @@ -29,8 +29,10 @@ typedef struct git_stream { int version; int encrypted; + int proxy_support; int (*connect)(struct git_stream *); int (*certificate)(git_cert **, struct git_stream *); + int (*set_proxy)(struct git_stream *, const char *proxy_url); ssize_t (*read)(struct git_stream *, void *, size_t); ssize_t (*write)(struct git_stream *, const char *, size_t, int); int (*close)(struct git_stream *); |