libauthretry: use the external function curl_strequal

The internal version strcasecompare isn't available outside libcurl
This commit is contained in:
Dan Fandrich 2016-10-31 12:42:47 +01:00
parent 9934f4fe9f
commit 52a2c2fb51
1 changed files with 3 additions and 4 deletions

View File

@ -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;
}