| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef NET_HTTP_HTTP_AUTH_HANDLER_NTLM_H_ | 5 #ifndef NET_HTTP_HTTP_AUTH_HANDLER_NTLM_H_ |
| 6 #define NET_HTTP_HTTP_AUTH_HANDLER_NTLM_H_ | 6 #define NET_HTTP_HTTP_AUTH_HANDLER_NTLM_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 // This contains the portable and the SSPI implementations for NTLM. | 10 // This contains the portable and the SSPI implementations for NTLM. |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 // this are unit tests which pass in a mocked-out version of the SSPI | 53 // this are unit tests which pass in a mocked-out version of the SSPI |
| 54 // library. After the call |sspi_library| will be owned by this Factory and | 54 // library. After the call |sspi_library| will be owned by this Factory and |
| 55 // will be destroyed when the Factory is destroyed. | 55 // will be destroyed when the Factory is destroyed. |
| 56 void set_sspi_library(SSPILibrary* sspi_library) { | 56 void set_sspi_library(SSPILibrary* sspi_library) { |
| 57 sspi_library_.reset(sspi_library); | 57 sspi_library_.reset(sspi_library); |
| 58 } | 58 } |
| 59 #endif // defined(NTLM_SSPI) | 59 #endif // defined(NTLM_SSPI) |
| 60 private: | 60 private: |
| 61 #if defined(NTLM_SSPI) | 61 #if defined(NTLM_SSPI) |
| 62 ULONG max_token_length_; | 62 ULONG max_token_length_; |
| 63 bool first_creation_; | |
| 64 bool is_unsupported_; | 63 bool is_unsupported_; |
| 65 scoped_ptr<SSPILibrary> sspi_library_; | 64 scoped_ptr<SSPILibrary> sspi_library_; |
| 66 #endif // defined(NTLM_SSPI) | 65 #endif // defined(NTLM_SSPI) |
| 67 }; | 66 }; |
| 68 | 67 |
| 69 #if defined(NTLM_PORTABLE) | 68 #if defined(NTLM_PORTABLE) |
| 70 // A function that generates n random bytes in the output buffer. | 69 // A function that generates n random bytes in the output buffer. |
| 71 typedef void (*GenerateRandomProc)(uint8* output, size_t n); | 70 typedef void (*GenerateRandomProc)(uint8* output, size_t n); |
| 72 | 71 |
| 73 // A function that returns the local host name. Returns an empty string if | 72 // A function that returns the local host name. Returns an empty string if |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 std::string auth_data_; | 162 std::string auth_data_; |
| 164 | 163 |
| 165 #if defined(NTLM_SSPI) | 164 #if defined(NTLM_SSPI) |
| 166 URLSecurityManager* url_security_manager_; | 165 URLSecurityManager* url_security_manager_; |
| 167 #endif | 166 #endif |
| 168 }; | 167 }; |
| 169 | 168 |
| 170 } // namespace net | 169 } // namespace net |
| 171 | 170 |
| 172 #endif // NET_HTTP_HTTP_AUTH_HANDLER_NTLM_H_ | 171 #endif // NET_HTTP_HTTP_AUTH_HANDLER_NTLM_H_ |
| OLD | NEW |