diff options
author | cbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-21 21:38:05 +0000 |
---|---|---|
committer | cbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-21 21:38:05 +0000 |
commit | 4fd4a6da1114c4df949d0bf0281b4ecbfbb73534 (patch) | |
tree | 0367c2b9f0a2f7f22185fbc69f2df6ccbee5f6e9 /net/http/http_auth_handler_negotiate_posix.cc | |
parent | 7106ae5055a009e1ca53f0fc5ee6bb6b0c925c9f (diff) | |
download | chromium_src-4fd4a6da1114c4df949d0bf0281b4ecbfbb73534.zip chromium_src-4fd4a6da1114c4df949d0bf0281b4ecbfbb73534.tar.gz chromium_src-4fd4a6da1114c4df949d0bf0281b4ecbfbb73534.tar.bz2 |
Added WWW-Authenticate Negotate support using shared HttpAuthSspi.
BUG=29862
TEST=None
Review URL: http://codereview.chromium.org/551015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36785 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_auth_handler_negotiate_posix.cc')
-rwxr-xr-x | net/http/http_auth_handler_negotiate_posix.cc | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/net/http/http_auth_handler_negotiate_posix.cc b/net/http/http_auth_handler_negotiate_posix.cc new file mode 100755 index 0000000..169689d --- /dev/null +++ b/net/http/http_auth_handler_negotiate_posix.cc @@ -0,0 +1,45 @@ +// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "net/http/http_auth_handler_negotiate.h"
+
+#include "base/logging.h"
+
+namespace net {
+
+// TODO(cbentzel): Negotiate authentication protocol is not supported on Posix
+// systems currently. These stubs make the main HTTP Authentication code bypass
+// Negotiate without requiring conditional compilation.
+
+HttpAuthHandlerNegotiate::HttpAuthHandlerNegotiate() {
+}
+
+HttpAuthHandlerNegotiate::~HttpAuthHandlerNegotiate() {
+}
+
+bool HttpAuthHandlerNegotiate::NeedsIdentity() {
+ NOTREACHED();
+ return false;
+}
+
+bool HttpAuthHandlerNegotiate::IsFinalRound() {
+ NOTREACHED();
+ return false;
+}
+
+bool HttpAuthHandlerNegotiate::Init(std::string::const_iterator challenge_begin,
+ std::string::const_iterator challenge_end) {
+ return false;
+}
+
+std::string HttpAuthHandlerNegotiate::GenerateCredentials(
+ const std::wstring& username,
+ const std::wstring& password,
+ const HttpRequestInfo* request,
+ const ProxyInfo* proxy) {
+ NOTREACHED();
+ return std::string();
+}
+
+} // namespace net
|