| 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 #ifndef NET_HTTP_HTTP_AUTH_GSSAPI_POSIX_H_ | 5 #ifndef NET_HTTP_HTTP_AUTH_GSSAPI_POSIX_H_ |
| 6 #define NET_HTTP_HTTP_AUTH_GSSAPI_POSIX_H_ | 6 #define NET_HTTP_HTTP_AUTH_GSSAPI_POSIX_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/gtest_prod_util.h" | 11 #include "base/gtest_prod_util.h" |
| 12 #include "base/native_library.h" | 12 #include "base/native_library.h" |
| 13 #include "base/string16.h" | 13 #include "base/string16.h" |
| 14 #include "net/http/http_auth.h" | 14 #include "net/http/http_auth.h" |
| 15 | 15 |
| 16 #define GSS_USE_FUNCTION_POINTERS | 16 #define GSS_USE_FUNCTION_POINTERS |
| 17 #include "net/third_party/gssapi/gssapi.h" | 17 #include "net/third_party/gssapi/gssapi.h" |
| 18 | 18 |
| 19 class GURL; | |
| 20 | |
| 21 namespace net { | 19 namespace net { |
| 22 | 20 |
| 23 struct HttpRequestInfo; | |
| 24 | |
| 25 extern gss_OID CHROME_GSS_C_NT_HOSTBASED_SERVICE_X; | 21 extern gss_OID CHROME_GSS_C_NT_HOSTBASED_SERVICE_X; |
| 26 extern gss_OID CHROME_GSS_C_NT_HOSTBASED_SERVICE; | 22 extern gss_OID CHROME_GSS_C_NT_HOSTBASED_SERVICE; |
| 27 extern gss_OID CHROME_GSS_KRB5_MECH_OID_DESC; | 23 extern gss_OID CHROME_GSS_KRB5_MECH_OID_DESC; |
| 28 | 24 |
| 29 // GSSAPILibrary is introduced so unit tests can mock the calls to the GSSAPI | 25 // GSSAPILibrary is introduced so unit tests can mock the calls to the GSSAPI |
| 30 // library. The default implementation attempts to load one of the standard | 26 // library. The default implementation attempts to load one of the standard |
| 31 // GSSAPI library implementations, then simply passes the arguments on to | 27 // GSSAPI library implementations, then simply passes the arguments on to |
| 32 // that implementation. | 28 // that implementation. |
| 33 class GSSAPILibrary { | 29 class GSSAPILibrary { |
| 34 public: | 30 public: |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 string16 password_; | 252 string16 password_; |
| 257 gss_OID gss_oid_; | 253 gss_OID gss_oid_; |
| 258 GSSAPILibrary* library_; | 254 GSSAPILibrary* library_; |
| 259 std::string decoded_server_auth_token_; | 255 std::string decoded_server_auth_token_; |
| 260 ScopedSecurityContext scoped_sec_context_; | 256 ScopedSecurityContext scoped_sec_context_; |
| 261 }; | 257 }; |
| 262 | 258 |
| 263 } // namespace net | 259 } // namespace net |
| 264 | 260 |
| 265 #endif // NET_HTTP_HTTP_AUTH_GSSAPI_POSIX_H_ | 261 #endif // NET_HTTP_HTTP_AUTH_GSSAPI_POSIX_H_ |
| OLD | NEW |