1 Index: squid3/lib/rfc2617.c
2 diff -c squid3/lib/rfc2617.c:1.8 squid3/lib/rfc2617.c:1.9
3 *** squid3/lib/rfc2617.c:1.8 Fri Jul 11 18:34:01 2003
4 --- squid3/lib/rfc2617.c Fri Nov 7 10:23:03 2003
9 for (i = 0; i < HASHHEXLEN; i++) {
11 if (('0' <= j) && (j <= '9'))
12 ! Bin[i / 2] |= ((j - '0') << ((i % 2 == 0) ? 4 : 0));
14 ! Bin[i / 2] |= ((j - 'a' + 10) << ((i % 2 == 0) ? 4 : 0));
21 for (i = 0; i < HASHHEXLEN; i++) {
24 if (('0' <= j) && (j <= '9'))
29 ! Bin[i / 2] = n << 4;
35 Index: squid3/src/auth/digest/auth_digest.cc
36 diff -c squid3/src/auth/digest/auth_digest.cc:1.31 squid3/src/auth/digest/auth_digest.cc:1.32
37 *** squid3/src/auth/digest/auth_digest.cc:1.31 Sun Aug 10 05:00:48 2003
38 --- squid3/src/auth/digest/auth_digest.cc Fri Nov 7 10:23:04 2003
41 debug(29, 9) ("\nResponse = '%s'\n"
42 "squid is = '%s'\n", digest_request->response, Response);
44 ! if (strcasecmp(digest_request->response, Response)) {
45 if (digestConfig->PostWorkaround && request->method != METHOD_GET) {
46 /* Ugly workaround for certain very broken browsers using the
47 * wrong method to calculate the request-digest on POST request.
49 debug(29, 9) ("\nResponse = '%s'\n"
50 "squid is = '%s'\n", digest_request->response, Response);
52 ! if (strcasecmp(digest_request->response, Response) != 0) {
53 ! if (!digest_request->flags.helper_queried) {
54 ! /* Query the helper in case the password has changed */
55 ! digest_request->flags.helper_queried = 1;
56 ! digest_request->credentials_ok = Pending;
60 if (digestConfig->PostWorkaround && request->method != METHOD_GET) {
61 /* Ugly workaround for certain very broken browsers using the
62 * wrong method to calculate the request-digest on POST request.
67 /* store user in hash's */
68 authenticateUserNameCacheAdd(auth_user);
71 * Add the digest to the user so we can tell if a hacking
72 * or spoofing attack is taking place. We do this by assuming
73 Index: squid3/src/auth/digest/auth_digest.h
74 diff -c squid3/src/auth/digest/auth_digest.h:1.14 squid3/src/auth/digest/auth_digest.h:1.15
75 *** squid3/src/auth/digest/auth_digest.h:1.14 Sun Aug 10 05:00:48 2003
76 --- squid3/src/auth/digest/auth_digest.h Fri Nov 7 10:23:04 2003
81 unsigned int nonce_stale:
84 + unsigned int helper_queried: