// 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" #include "net/base/net_errors.h" namespace net { // TODO(ahendrickson): Implement via GSSAPI. // 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( URLSecurityManager* url_security_manager) : url_security_manager_(url_security_manager) { } HttpAuthHandlerNegotiate::~HttpAuthHandlerNegotiate() { } bool HttpAuthHandlerNegotiate::NeedsIdentity() { NOTREACHED(); LOG(ERROR) << ErrorToString(ERR_NOT_IMPLEMENTED); return false; } bool HttpAuthHandlerNegotiate::IsFinalRound() { NOTREACHED(); LOG(ERROR) << ErrorToString(ERR_NOT_IMPLEMENTED); return false; } bool HttpAuthHandlerNegotiate::AllowsDefaultCredentials() { NOTREACHED(); LOG(ERROR) << ErrorToString(ERR_NOT_IMPLEMENTED); return false; } bool HttpAuthHandlerNegotiate::Init(HttpAuth::ChallengeTokenizer* tok) { return false; } int HttpAuthHandlerNegotiate::GenerateAuthToken( const std::wstring& username, const std::wstring& password, const HttpRequestInfo* request, const ProxyInfo* proxy, std::string* auth_token) { NOTREACHED(); LOG(ERROR) << ErrorToString(ERR_NOT_IMPLEMENTED); return ERR_NOT_IMPLEMENTED; } int HttpAuthHandlerNegotiate::GenerateDefaultAuthToken( const HttpRequestInfo* request, const ProxyInfo* proxy, std::string* auth_token) { NOTREACHED(); LOG(ERROR) << ErrorToString(ERR_NOT_IMPLEMENTED); return ERR_NOT_IMPLEMENTED; } bool HttpAuthHandlerNegotiate::NeedsCanonicalName() { return false; } int HttpAuthHandlerNegotiate::ResolveCanonicalName( HostResolver* host_resolver, CompletionCallback* callback) { NOTREACHED(); LOG(ERROR) << ErrorToString(ERR_NOT_IMPLEMENTED); return ERR_NOT_IMPLEMENTED; } HttpAuthHandlerNegotiate::Factory::Factory() : disable_cname_lookup_(false), use_port_(false) { } HttpAuthHandlerNegotiate::Factory::~Factory() { } int HttpAuthHandlerNegotiate::Factory::CreateAuthHandler( HttpAuth::ChallengeTokenizer* challenge, HttpAuth::Target target, const GURL& origin, CreateReason reason, int digest_nonce_count, const BoundNetLog& net_log, scoped_ptr* handler) { return ERR_UNSUPPORTED_AUTH_SCHEME; } } // namespace net