mirror of
https://github.com/curl/curl.git
synced 2025-03-13 15:37:04 +08:00
build: fix compiler warning with auths disabled
```
./curl/lib/http.c:979:12: warning: unused function 'is_valid_auth_separator' [-Wunused-function]
static int is_valid_auth_separator(char ch)
^
5 warnings generated.
```
Follow-up to e92edfbef6
#11490
Closes #12227
This commit is contained in:
parent
960d601481
commit
aca7d808c3
16
lib/http.c
16
lib/http.c
@ -970,17 +970,21 @@ Curl_http_output_auth(struct Curl_easy *data,
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(USE_SPNEGO) || defined(USE_NTLM) || \
|
||||||
|
!defined(CURL_DISABLE_DIGEST_AUTH) || \
|
||||||
|
!defined(CURL_DISABLE_BASIC_AUTH) || \
|
||||||
|
!defined(CURL_DISABLE_BEARER_AUTH)
|
||||||
|
static int is_valid_auth_separator(char ch)
|
||||||
|
{
|
||||||
|
return ch == '\0' || ch == ',' || ISSPACE(ch);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Curl_http_input_auth() deals with Proxy-Authenticate: and WWW-Authenticate:
|
* Curl_http_input_auth() deals with Proxy-Authenticate: and WWW-Authenticate:
|
||||||
* headers. They are dealt with both in the transfer.c main loop and in the
|
* headers. They are dealt with both in the transfer.c main loop and in the
|
||||||
* proxy CONNECT loop.
|
* proxy CONNECT loop.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static int is_valid_auth_separator(char ch)
|
|
||||||
{
|
|
||||||
return ch == '\0' || ch == ',' || ISSPACE(ch);
|
|
||||||
}
|
|
||||||
|
|
||||||
CURLcode Curl_http_input_auth(struct Curl_easy *data, bool proxy,
|
CURLcode Curl_http_input_auth(struct Curl_easy *data, bool proxy,
|
||||||
const char *auth) /* the first non-space */
|
const char *auth) /* the first non-space */
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user