summaryrefslogtreecommitdiff
path: root/methods/connect.h
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2021-09-13 00:54:38 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2021-09-13 16:09:19 +0200
commit4e04cbafe7db326b52ee650a4f4ccc3444da6890 (patch)
tree8dd2e43cfa4f8a44ff8480b9ab456ced0dee3e81 /methods/connect.h
parent2b0369a5d1673d9e40f2af4db7677b040a26ee58 (diff)
Use https config on https proxies for http servers
The settings used for unwrapping TLS connections depend on the access and hostname we connect to more than what we eventually unwrap. The bugreport mentions CaInfo, but all other https-settings should also apply (regardless of generic or hostname specific) to an https proxy, even if the connection we proxy through it is http-only. Closes: #990555
Diffstat (limited to 'methods/connect.h')
-rw-r--r--methods/connect.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/methods/connect.h b/methods/connect.h
index bd6507761..413484aa3 100644
--- a/methods/connect.h
+++ b/methods/connect.h
@@ -42,7 +42,8 @@ ResultState Connect(std::string To, int Port, const char *Service, int DefPort,
std::unique_ptr<MethodFd> &Fd, unsigned long TimeOut, aptMethod *Owner);
ResultState UnwrapSocks(std::string To, int Port, URI Proxy, std::unique_ptr<MethodFd> &Fd, unsigned long Timeout, aptMethod *Owner);
-ResultState UnwrapTLS(std::string const &To, std::unique_ptr<MethodFd> &Fd, unsigned long Timeout, aptMethod *Owner);
+ResultState UnwrapTLS(std::string const &To, std::unique_ptr<MethodFd> &Fd, unsigned long Timeout, aptMethod *Owner,
+ aptConfigWrapperForMethods const * OwnerConf);
void RotateDNS();