diff options
| author | David Kalnischkies <david@kalnischkies.de> | 2021-09-13 00:54:38 +0200 |
|---|---|---|
| committer | David Kalnischkies <david@kalnischkies.de> | 2021-09-13 16:09:19 +0200 |
| commit | 4e04cbafe7db326b52ee650a4f4ccc3444da6890 (patch) | |
| tree | 8dd2e43cfa4f8a44ff8480b9ab456ced0dee3e81 /methods/connect.h | |
| parent | 2b0369a5d1673d9e40f2af4db7677b040a26ee58 (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.h | 3 |
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(); |
