Commit 52a2c2fb authored by Dan Fandrich's avatar Dan Fandrich
Browse files

libauthretry: use the external function curl_strequal

The internal version strcasecompare isn't available outside libcurl
parent 9934f4fe
Loading
Loading
Loading
Loading
+3 −4
Original line number Original line Diff line number Diff line
@@ -25,7 +25,6 @@
 */
 */


#include "test.h"
#include "test.h"
#include "strcase.h"
#include "memdebug.h"
#include "memdebug.h"


static CURLcode send_request(CURL *curl, const char *url, int seq,
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)
  if(!arg)
    return CURLAUTH_NONE;
    return CURLAUTH_NONE;
  if(strcasecompare(arg, "basic"))
  if(curl_strequal(arg, "basic"))
    return CURLAUTH_BASIC;
    return CURLAUTH_BASIC;
  if(strcasecompare(arg, "digest"))
  if(curl_strequal(arg, "digest"))
    return CURLAUTH_DIGEST;
    return CURLAUTH_DIGEST;
  if(strcasecompare(arg, "ntlm"))
  if(curl_strequal(arg, "ntlm"))
    return CURLAUTH_NTLM;
    return CURLAUTH_NTLM;
  return CURLAUTH_NONE;
  return CURLAUTH_NONE;
}
}