| 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 #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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 const gss_ctx_id_t context_handle, | 157 const gss_ctx_id_t context_handle, |
| 158 gss_name_t* src_name, | 158 gss_name_t* src_name, |
| 159 gss_name_t* targ_name, | 159 gss_name_t* targ_name, |
| 160 OM_uint32* lifetime_rec, | 160 OM_uint32* lifetime_rec, |
| 161 gss_OID* mech_type, | 161 gss_OID* mech_type, |
| 162 OM_uint32* ctx_flags, | 162 OM_uint32* ctx_flags, |
| 163 int* locally_initiated, | 163 int* locally_initiated, |
| 164 int* open) override; | 164 int* open) override; |
| 165 | 165 |
| 166 private: | 166 private: |
| 167 typedef typeof(&gss_import_name) gss_import_name_type; | 167 typedef decltype(&gss_import_name) gss_import_name_type; |
| 168 typedef typeof(&gss_release_name) gss_release_name_type; | 168 typedef decltype(&gss_release_name) gss_release_name_type; |
| 169 typedef typeof(&gss_release_buffer) gss_release_buffer_type; | 169 typedef decltype(&gss_release_buffer) gss_release_buffer_type; |
| 170 typedef typeof(&gss_display_name) gss_display_name_type; | 170 typedef decltype(&gss_display_name) gss_display_name_type; |
| 171 typedef typeof(&gss_display_status) gss_display_status_type; | 171 typedef decltype(&gss_display_status) gss_display_status_type; |
| 172 typedef typeof(&gss_init_sec_context) gss_init_sec_context_type; | 172 typedef decltype(&gss_init_sec_context) gss_init_sec_context_type; |
| 173 typedef typeof(&gss_wrap_size_limit) gss_wrap_size_limit_type; | 173 typedef decltype(&gss_wrap_size_limit) gss_wrap_size_limit_type; |
| 174 typedef typeof(&gss_delete_sec_context) gss_delete_sec_context_type; | 174 typedef decltype(&gss_delete_sec_context) gss_delete_sec_context_type; |
| 175 typedef typeof(&gss_inquire_context) gss_inquire_context_type; | 175 typedef decltype(&gss_inquire_context) gss_inquire_context_type; |
| 176 | 176 |
| 177 FRIEND_TEST_ALL_PREFIXES(HttpAuthGSSAPIPOSIXTest, GSSAPIStartup); | 177 FRIEND_TEST_ALL_PREFIXES(HttpAuthGSSAPIPOSIXTest, GSSAPIStartup); |
| 178 | 178 |
| 179 bool InitImpl(); | 179 bool InitImpl(); |
| 180 // Finds a usable dynamic library for GSSAPI and loads it. The criteria are: | 180 // Finds a usable dynamic library for GSSAPI and loads it. The criteria are: |
| 181 // 1. The library must exist. | 181 // 1. The library must exist. |
| 182 // 2. The library must export the functions we need. | 182 // 2. The library must export the functions we need. |
| 183 base::NativeLibrary LoadSharedLibrary(); | 183 base::NativeLibrary LoadSharedLibrary(); |
| 184 bool BindMethods(base::NativeLibrary lib); | 184 bool BindMethods(base::NativeLibrary lib); |
| 185 | 185 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 gss_OID gss_oid_; | 262 gss_OID gss_oid_; |
| 263 GSSAPILibrary* library_; | 263 GSSAPILibrary* library_; |
| 264 std::string decoded_server_auth_token_; | 264 std::string decoded_server_auth_token_; |
| 265 ScopedSecurityContext scoped_sec_context_; | 265 ScopedSecurityContext scoped_sec_context_; |
| 266 bool can_delegate_; | 266 bool can_delegate_; |
| 267 }; | 267 }; |
| 268 | 268 |
| 269 } // namespace net | 269 } // namespace net |
| 270 | 270 |
| 271 #endif // NET_HTTP_HTTP_AUTH_GSSAPI_POSIX_H_ | 271 #endif // NET_HTTP_HTTP_AUTH_GSSAPI_POSIX_H_ |
| OLD | NEW |