diff options
author | Patrick Monnerat <patrick@monnerat.net> | 2022-09-27 01:01:16 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2022-09-27 14:05:37 +0200 |
commit | 72652c0613d37ce18e99cca17a42887f12ad43da (patch) | |
tree | 79044a1ea2df66714beb8705821b6118ad332c21 /lib/http.h | |
parent | 4adee03cd4e0bbd324519dd7a06ba675c03ac3ae (diff) | |
download | curl-72652c0613d37ce18e99cca17a42887f12ad43da.tar.gz |
http, vauth: always provide Curl_allow_auth_to_host() functionality
This function is currently located in the lib/http.c module and is
therefore disabled by the CURL_DISABLE_HTTP conditional token.
As it may be called by TLS backends, disabling HTTP results in an
undefined reference error at link time.
Move this function to vauth/vauth.c to always provide it and rename it
as Curl_auth_allowed_to_host() to respect the vauth module naming
convention.
Closes #9600
Diffstat (limited to 'lib/http.h')
-rw-r--r-- | lib/http.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/http.h b/lib/http.h index 0ab592436..4ba4b2bbb 100644 --- a/lib/http.h +++ b/lib/http.h @@ -392,10 +392,4 @@ Curl_http_output_auth(struct Curl_easy *data, bool proxytunnel); /* TRUE if this is the request setting up the proxy tunnel */ -/* - * Curl_allow_auth_to_host() tells if authentication, cookies or other - * "sensitive data" can (still) be sent to this host. - */ -bool Curl_allow_auth_to_host(struct Curl_easy *data); - #endif /* HEADER_CURL_HTTP_H */ |