mirror of
https://github.com/curl/curl.git
synced 2026-08-26 05:23:33 +03:00
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
This commit is contained in:
parent
4adee03cd4
commit
72652c0613
6 changed files with 29 additions and 25 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue