]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Use strcasecmp, not stricmp
authorhno <>
Fri, 2 Feb 2001 01:49:06 +0000 (01:49 +0000)
committerhno <>
Fri, 2 Feb 2001 01:49:06 +0000 (01:49 +0000)
lib/rfc2617.c

index 01942fbd90b95b8ba95137c6e048ed33d69f1320..7bf15833e01311afce2c6ad16eee766f273b2830 100644 (file)
@@ -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);
     };