summaryrefslogtreecommitdiffstats
path: root/net/http
diff options
context:
space:
mode:
authorcbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-14 17:33:49 +0000
committercbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-14 17:33:49 +0000
commit73f834f21348269a14fdea59881dd3577defad9d (patch)
tree7c76b04f51e62902bc91456189fa18fd4a84b772 /net/http
parentc12fded459f665851d981c32b4136f94d178bcbf (diff)
downloadchromium_src-73f834f21348269a14fdea59881dd3577defad9d.zip
chromium_src-73f834f21348269a14fdea59881dd3577defad9d.tar.gz
chromium_src-73f834f21348269a14fdea59881dd3577defad9d.tar.bz2
Init GSSAPI library in HttpAuthHandlerNegotiate.
BUG=33033 TEST=net_unittests Review URL: http://codereview.chromium.org/2909012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52340 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http')
-rw-r--r--net/http/http_auth_handler_negotiate.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/http/http_auth_handler_negotiate.cc b/net/http/http_auth_handler_negotiate.cc
index 2416c1a..d05dfd9 100644
--- a/net/http/http_auth_handler_negotiate.cc
+++ b/net/http/http_auth_handler_negotiate.cc
@@ -80,6 +80,12 @@ int HttpAuthHandlerNegotiate::GenerateAuthTokenImpl(
// The Negotiate challenge header looks like:
// WWW-Authenticate: NEGOTIATE auth-data
bool HttpAuthHandlerNegotiate::Init(HttpAuth::ChallengeTokenizer* challenge) {
+#if defined(OS_POSIX)
+ if (!auth_system_.Init()) {
+ LOG(INFO) << "can't initialize GSSAPI library";
+ return false;
+ }
+#endif
scheme_ = "negotiate";
score_ = 4;
properties_ = ENCRYPTS_IDENTITY | IS_CONNECTION_BASED;