Home | History | Annotate | Download | only in http
      1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #include "net/http/http_auth_handler_negotiate.h"
      6 
      7 #include "base/logging.h"
      8 
      9 namespace net {
     10 
     11 // TODO(cbentzel): Negotiate authentication protocol is not supported on Posix
     12 // systems currently. These stubs make the main HTTP Authentication code bypass
     13 // Negotiate without requiring conditional compilation.
     14 
     15 HttpAuthHandlerNegotiate::HttpAuthHandlerNegotiate() {
     16 }
     17 
     18 HttpAuthHandlerNegotiate::~HttpAuthHandlerNegotiate() {
     19 }
     20 
     21 bool HttpAuthHandlerNegotiate::NeedsIdentity() {
     22   NOTREACHED();
     23   return false;
     24 }
     25 
     26 bool HttpAuthHandlerNegotiate::IsFinalRound() {
     27   NOTREACHED();
     28   return false;
     29 }
     30 
     31 bool HttpAuthHandlerNegotiate::Init(std::string::const_iterator challenge_begin,
     32                                     std::string::const_iterator challenge_end) {
     33   return false;
     34 }
     35 
     36 std::string HttpAuthHandlerNegotiate::GenerateCredentials(
     37     const std::wstring& username,
     38     const std::wstring& password,
     39     const HttpRequestInfo* request,
     40     const ProxyInfo* proxy) {
     41   NOTREACHED();
     42   return std::string();
     43 }
     44 
     45 }  // namespace net
     46