Skip to content

Commit

Permalink
Merge branch 'v6' into backport-1872
Browse files Browse the repository at this point in the history
  • Loading branch information
kinkie authored Oct 11, 2024
2 parents 09bd44a + 2847a11 commit 0632120
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
Changes in squid-6.12 (12 Oct 2024)
- Fix validation of Digest auth header parameters
- Fix build with libtool v2.4 + automake v1.17
- Use git to extract default build-info when enabled
- ... and a minor source-maintenance portability fix

Changes in squid-6.11 (15 Sep 2024)
- Fix Kerberos detection when cross-compiling
- Improve robustness of DNS code on reconfigure
Expand Down
20 changes: 13 additions & 7 deletions src/auth/digest/Config.cc
Original file line number Diff line number Diff line change
Expand Up @@ -966,13 +966,19 @@ Auth::Digest::Config::decode(char const *proxy_auth, const HttpRequest *request,
return rv;
}
} else {
/* cnonce and nc both require qop */
if (digest_request->cnonce || digest_request->nc[0] != '\0') {
debugs(29, 2, "missing qop!");
rv = authDigestLogUsername(username, digest_request, aRequestRealm);
safe_free(username);
return rv;
}
/* RFC7616 section 3.3, qop:
* "MUST be used by all implementations"
*
* RFC7616 section 3.4, qop:
* "value MUST be one of the alternatives the server
* indicated it supports in the WWW-Authenticate header field"
*
* Squid sends qop=auth, reject buggy or outdated clients.
*/
debugs(29, 2, "missing qop!");
rv = authDigestLogUsername(username, digest_request, aRequestRealm);
safe_free(username);
return rv;
}

/** below nonce state dependent **/
Expand Down

0 comments on commit 0632120

Please sign in to comment.