mirror of
https://github.com/curl/curl.git
synced 2026-08-26 19:03:32 +03:00
lib: drop two interim macros in favor of native libcurl API calls
Drop `strcasecompare` and `strncasecompare` in favor of libcurl API calls `curl_strequal` and `curl_strnequal` respectively. Also drop unnecessary `strcase.h` includes. Include `curl/curl.h` instead where it wasn't included before. Closes #17772
This commit is contained in:
parent
d553f7e9f0
commit
a3787f98ac
54 changed files with 223 additions and 260 deletions
|
|
@ -28,7 +28,6 @@
|
|||
|
||||
#include "vauth.h"
|
||||
#include "../urldata.h"
|
||||
#include "../strcase.h"
|
||||
#include "../curlx/multibyte.h"
|
||||
#include "../curl_printf.h"
|
||||
#include "../url.h"
|
||||
|
|
@ -157,7 +156,7 @@ bool Curl_auth_allowed_to_host(struct Curl_easy *data)
|
|||
return !data->state.this_is_a_follow ||
|
||||
data->set.allow_auth_to_other_hosts ||
|
||||
(data->state.first_host &&
|
||||
strcasecompare(data->state.first_host, conn->host.name) &&
|
||||
curl_strequal(data->state.first_host, conn->host.name) &&
|
||||
(data->state.first_remote_port == conn->remote_port) &&
|
||||
(data->state.first_remote_protocol == conn->handler->protocol));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue