OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 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 // See "SSPI Sample Application" at | 5 // See "SSPI Sample Application" at |
6 // http://msdn.microsoft.com/en-us/library/aa918273.aspx | 6 // http://msdn.microsoft.com/en-us/library/aa918273.aspx |
7 // and "NTLM Security Support Provider" at | 7 // and "NTLM Security Support Provider" at |
8 // http://msdn.microsoft.com/en-us/library/aa923611.aspx. | 8 // http://msdn.microsoft.com/en-us/library/aa923611.aspx. |
9 | 9 |
10 #include "net/http/http_auth_handler_ntlm.h" | 10 #include "net/http/http_auth_handler_ntlm.h" |
11 | 11 |
12 #include "base/logging.h" | |
13 #include "base/string_util.h" | 12 #include "base/string_util.h" |
14 #include "net/base/net_errors.h" | 13 #include "net/base/net_errors.h" |
15 #include "net/base/net_util.h" | 14 #include "net/base/net_util.h" |
16 #include "net/http/http_auth_sspi_win.h" | 15 #include "net/http/http_auth_sspi_win.h" |
17 #include "net/http/url_security_manager.h" | 16 #include "net/http/url_security_manager.h" |
18 | 17 |
19 #pragma comment(lib, "secur32.lib") | 18 #pragma comment(lib, "secur32.lib") |
20 | 19 |
21 namespace net { | 20 namespace net { |
22 | 21 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 scoped_ptr<HttpAuthHandler> tmp_handler( | 79 scoped_ptr<HttpAuthHandler> tmp_handler( |
81 new HttpAuthHandlerNTLM(sspi_library_, max_token_length_, | 80 new HttpAuthHandlerNTLM(sspi_library_, max_token_length_, |
82 url_security_manager())); | 81 url_security_manager())); |
83 if (!tmp_handler->InitFromChallenge(challenge, target, origin, net_log)) | 82 if (!tmp_handler->InitFromChallenge(challenge, target, origin, net_log)) |
84 return ERR_INVALID_RESPONSE; | 83 return ERR_INVALID_RESPONSE; |
85 handler->swap(tmp_handler); | 84 handler->swap(tmp_handler); |
86 return OK; | 85 return OK; |
87 } | 86 } |
88 | 87 |
89 } // namespace net | 88 } // namespace net |
OLD | NEW |