diff -rc squid-2.5.STABLE1/helpers/digest_auth/password/digest_pw_auth.c squid-2.5.STABLE1.modded/helpers/digest_auth/password/digest_pw_auth.c *** squid-2.5.STABLE1/helpers/digest_auth/password/digest_pw_auth.c Thu Feb 1 08:46:42 2001 --- squid-2.5.STABLE1.modded/helpers/digest_auth/password/digest_pw_auth.c Wed Feb 5 15:43:56 2003 *************** *** 150,157 **** if (u == NULL) { printf("ERR\n"); } else { ! DigestCalcHA1("md5", user, realm, u->passwd, NULL, NULL, HA1, HHA1); ! printf("%s\n", HHA1); } } exit(0); --- 150,165 ---- if (u == NULL) { printf("ERR\n"); } else { ! if(strncmp("{HHA1}", u->passwd, 6)) ! { ! DigestCalcHA1("md5", user, realm, u->passwd, NULL, NULL, HA1, HHA1); ! printf("%s\n", HHA1); ! fprintf(stderr, "digest_pw_auth: %s:{HHA1}%s\n", user, HHA1); ! } ! else ! { ! printf("%s\n", &u->passwd[6]); ! } } } exit(0);