]> granicus.if.org Git - curl/commitdiff
libauthretry: use the external function curl_strequal
authorDan Fandrich <dan@coneharvesters.com>
Mon, 31 Oct 2016 11:42:47 +0000 (12:42 +0100)
committerDan Fandrich <dan@coneharvesters.com>
Mon, 31 Oct 2016 11:44:18 +0000 (12:44 +0100)
The internal version strcasecompare isn't available outside libcurl

tests/libtest/libauthretry.c

index 7e3025df89a392b3f130d44135e5874f9f12b586..487eb893812353ba945b710823cbb9416b38d0b5 100644 (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;
 }