diff options
author | wtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-28 01:29:24 +0000 |
---|---|---|
committer | wtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-28 01:29:24 +0000 |
commit | 3f918787e1073e17439e55ed34f23ffdc31f891f (patch) | |
tree | 3e591f7dc3c54e8859815486057725366532ca22 /net/http/http_auth_handler.cc | |
parent | 0a5f0a187c73e47417511ea2ed988c5b3876f563 (diff) | |
download | chromium_src-3f918787e1073e17439e55ed34f23ffdc31f891f.zip chromium_src-3f918787e1073e17439e55ed34f23ffdc31f891f.tar.gz chromium_src-3f918787e1073e17439e55ed34f23ffdc31f891f.tar.bz2 |
Implement the NTLM authentication scheme by porting
Mozilla's implementation.
R=darin,eroman
BUG=6567,6824
Review URL: http://codereview.chromium.org/28144
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10667 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_auth_handler.cc')
-rw-r--r-- | net/http/http_auth_handler.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/net/http/http_auth_handler.cc b/net/http/http_auth_handler.cc index dd9482f..6dac1f0 100644 --- a/net/http/http_auth_handler.cc +++ b/net/http/http_auth_handler.cc @@ -12,15 +12,17 @@ bool HttpAuthHandler::InitFromChallenge(std::string::const_iterator begin, HttpAuth::Target target) { target_ = target; score_ = -1; + properties_ = -1; bool ok = Init(begin, end); - // Init() is expected to set the scheme, realm, and score. + // Init() is expected to set the scheme, realm, score, and properties. The + // realm may be empty. DCHECK(!ok || !scheme().empty()); - DCHECK(!ok || !realm().empty()); DCHECK(!ok || score_ != -1); - + DCHECK(!ok || properties_ != -1); + return ok; } -} // namespace net +} // namespace net |