summaryrefslogtreecommitdiff
path: root/methods/connect.h
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2017-06-28 10:55:57 +0200
committerJulian Andres Klode <jak@debian.org>2017-06-28 15:52:38 +0200
commit2851ec6cf037d552118b885be0dd7796d74730c6 (patch)
tree31fddfa989f328b28806149435857c753dfcfd5f /methods/connect.h
parent5666084ecfe140aaa3f89388de557c2f875b4244 (diff)
methods: Add HTTPS support to http method, using GnuTLS
The http method will eventually replace the curl-based https method, but for now, this is an opt-in experiment that can be enabled by setting Dir::Bin::Methods::https to "http". Known issues: - We do not support HTTPS proxies yet - We do not support proxying HTTPS connections yet (CONNECT) - IssuerCert and SslForceVersion are unsupported Gbp-Dch: Full
Diffstat (limited to 'methods/connect.h')
-rw-r--r--methods/connect.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/methods/connect.h b/methods/connect.h
index 5eae77d09..39f3c1ce2 100644
--- a/methods/connect.h
+++ b/methods/connect.h
@@ -40,6 +40,9 @@ struct MethodFd
bool Connect(std::string To, int Port, const char *Service, int DefPort,
std::unique_ptr<MethodFd> &Fd, unsigned long TimeOut, aptMethod *Owner);
+bool UnwrapSocks(std::string To, int Port, URI Proxy, std::unique_ptr<MethodFd> &Fd, unsigned long Timeout, aptMethod *Owner);
+bool UnwrapTLS(std::string To, std::unique_ptr<MethodFd> &Fd, unsigned long Timeout, aptMethod *Owner);
+
void RotateDNS();
#endif