| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "net/http/http_auth_handler_negotiate.h" | 5 #include "net/http/http_auth_handler_negotiate.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 #if defined(OS_WIN) | 93 #if defined(OS_WIN) |
| 94 ULONG max_token_length, | 94 ULONG max_token_length, |
| 95 #endif | 95 #endif |
| 96 URLSecurityManager* url_security_manager, | 96 URLSecurityManager* url_security_manager, |
| 97 HostResolver* resolver, | 97 HostResolver* resolver, |
| 98 bool disable_cname_lookup, | 98 bool disable_cname_lookup, |
| 99 bool use_port) | 99 bool use_port) |
| 100 #if defined(OS_WIN) | 100 #if defined(OS_WIN) |
| 101 : auth_system_(auth_library, "Negotiate", NEGOSSP_NAME, max_token_length), | 101 : auth_system_(auth_library, "Negotiate", NEGOSSP_NAME, max_token_length), |
| 102 #elif defined(OS_POSIX) | 102 #elif defined(OS_POSIX) |
| 103 : auth_system_(auth_library, "Negotiate", CHROME_GSS_KRB5_MECH_OID_DESC), | 103 : auth_system_(auth_library, "Negotiate", CHROME_GSS_SPNEGO_MECH_OID_DESC), |
| 104 #endif | 104 #endif |
| 105 disable_cname_lookup_(disable_cname_lookup), | 105 disable_cname_lookup_(disable_cname_lookup), |
| 106 use_port_(use_port), | 106 use_port_(use_port), |
| 107 resolver_(resolver), | 107 resolver_(resolver), |
| 108 already_called_(false), | 108 already_called_(false), |
| 109 has_credentials_(false), | 109 has_credentials_(false), |
| 110 auth_token_(NULL), | 110 auth_token_(NULL), |
| 111 next_state_(STATE_NONE), | 111 next_state_(STATE_NONE), |
| 112 url_security_manager_(url_security_manager) { | 112 url_security_manager_(url_security_manager) { |
| 113 } | 113 } |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 bool HttpAuthHandlerNegotiate::CanDelegate() const { | 330 bool HttpAuthHandlerNegotiate::CanDelegate() const { |
| 331 // TODO(cbentzel): Should delegation be allowed on proxies? | 331 // TODO(cbentzel): Should delegation be allowed on proxies? |
| 332 if (target_ == HttpAuth::AUTH_PROXY) | 332 if (target_ == HttpAuth::AUTH_PROXY) |
| 333 return false; | 333 return false; |
| 334 if (!url_security_manager_) | 334 if (!url_security_manager_) |
| 335 return false; | 335 return false; |
| 336 return url_security_manager_->CanDelegate(origin_); | 336 return url_security_manager_->CanDelegate(origin_); |
| 337 } | 337 } |
| 338 | 338 |
| 339 } // namespace net | 339 } // namespace net |
| OLD | NEW |