diff options
author | wtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-18 17:46:10 +0000 |
---|---|---|
committer | wtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-18 17:46:10 +0000 |
commit | 4de702f4d2053b586d4b9b12181ef953e2773da8 (patch) | |
tree | e7e60b480dce10b27ce51a04a6603332c31a395f /net/http/http_auth_handler.h | |
parent | 95c9bbd7141891389a00c3334df22be97ff37598 (diff) | |
download | chromium_src-4de702f4d2053b586d4b9b12181ef953e2773da8.zip chromium_src-4de702f4d2053b586d4b9b12181ef953e2773da8.tar.gz chromium_src-4de702f4d2053b586d4b9b12181ef953e2773da8.tar.bz2 |
We should pass the service principal name (SPN) of the
format "HTTP/host:port" as the third argument (pszTargetName)
to InitializeSecurityContext. This requires adding a
host_and_port parameter to some methods.
Remove obsolete (and incorrect) logging code in
HttpNetworkTransaction::PrepareForAuthRestart().
R=eroman
BUG=18009
TEST=none
Review URL: http://codereview.chromium.org/206022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26588 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_auth_handler.h')
-rw-r--r-- | net/http/http_auth_handler.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/net/http/http_auth_handler.h b/net/http/http_auth_handler.h index 5ad96d2..1caf1a4 100644 --- a/net/http/http_auth_handler.h +++ b/net/http/http_auth_handler.h @@ -26,7 +26,8 @@ class HttpAuthHandler : public base::RefCounted<HttpAuthHandler> { // Initialize the handler by parsing a challenge string. bool InitFromChallenge(std::string::const_iterator begin, std::string::const_iterator end, - HttpAuth::Target target); + HttpAuth::Target target, + const GURL& origin); // Lowercase name of the auth scheme const std::string& scheme() const { @@ -94,9 +95,13 @@ class HttpAuthHandler : public base::RefCounted<HttpAuthHandler> { // The lowercase auth-scheme {"basic", "digest", "ntlm", ...} std::string scheme_; - // The realm. + // The realm. Used by "basic" and "digest". std::string realm_; + // The {scheme, host, port} for the authentication target. Used by "ntlm" + // to construct the service principal name. + GURL origin_; + // The score for this challenge. Higher numbers are better. int score_; |