libauthretry: use the external function curl_strequal
The internal version strcasecompare isn't available outside libcurl
This commit is contained in:
Родитель
9934f4fe9f
Коммит
52a2c2fb51
|
@ -25,7 +25,6 @@
|
|||
*/
|
||||
|
||||
#include "test.h"
|
||||
#include "strcase.h"
|
||||
#include "memdebug.h"
|
||||
|
||||
static CURLcode send_request(CURL *curl, const char *url, int seq,
|
||||
|
@ -72,11 +71,11 @@ static long parse_auth_name(const char *arg)
|
|||
{
|
||||
if(!arg)
|
||||
return CURLAUTH_NONE;
|
||||
if(strcasecompare(arg, "basic"))
|
||||
if(curl_strequal(arg, "basic"))
|
||||
return CURLAUTH_BASIC;
|
||||
if(strcasecompare(arg, "digest"))
|
||||
if(curl_strequal(arg, "digest"))
|
||||
return CURLAUTH_DIGEST;
|
||||
if(strcasecompare(arg, "ntlm"))
|
||||
if(curl_strequal(arg, "ntlm"))
|
||||
return CURLAUTH_NTLM;
|
||||
return CURLAUTH_NONE;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче