From: hno <> Date: Fri, 2 Feb 2001 01:49:06 +0000 (+0000) Subject: Use strcasecmp, not stricmp X-Git-Tag: SQUID_3_0_PRE1~1618 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a8cb0f62f39f3bec4b60127df1b9247746357cfa;p=thirdparty%2Fsquid.git Use strcasecmp, not stricmp --- diff --git a/lib/rfc2617.c b/lib/rfc2617.c index 01942fbd90..7bf15833e0 100644 --- a/lib/rfc2617.c +++ b/lib/rfc2617.c @@ -13,7 +13,7 @@ /* - * $Id: rfc2617.c,v 1.1 2001/01/31 22:16:37 hno Exp $ + * $Id: rfc2617.c,v 1.2 2001/02/01 18:49:06 hno Exp $ * * DEBUG: * AUTHOR: RFC 2617 & Robert Collins @@ -112,7 +112,7 @@ DigestCalcHA1( MD5Update(&Md5Ctx, pszPassword, strlen(pszPassword)); MD5Final(HA1, &Md5Ctx); } - if (stricmp(pszAlg, "md5-sess") == 0) { + if (strcasecmp(pszAlg, "md5-sess") == 0) { MD5Init(&Md5Ctx); MD5Update(&Md5Ctx, HA1, HASHLEN); MD5Update(&Md5Ctx, ":", 1); @@ -149,7 +149,7 @@ DigestCalcResponse( MD5Update(&Md5Ctx, pszMethod, strlen(pszMethod)); MD5Update(&Md5Ctx, ":", 1); MD5Update(&Md5Ctx, pszDigestUri, strlen(pszDigestUri)); - if (stricmp(pszQop, "auth-int") == 0) { + if (strcasecmp(pszQop, "auth-int") == 0) { MD5Update(&Md5Ctx, ":", 1); MD5Update(&Md5Ctx, HEntity, HASHHEXLEN); };