| 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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 const gss_OID gss_oid); | 237 const gss_OID gss_oid); |
| 238 ~HttpAuthGSSAPI(); | 238 ~HttpAuthGSSAPI(); |
| 239 | 239 |
| 240 bool Init(); | 240 bool Init(); |
| 241 | 241 |
| 242 bool NeedsIdentity() const; | 242 bool NeedsIdentity() const; |
| 243 | 243 |
| 244 bool AllowsExplicitCredentials() const; | 244 bool AllowsExplicitCredentials() const; |
| 245 | 245 |
| 246 HttpAuth::AuthorizationResult ParseChallenge( | 246 HttpAuth::AuthorizationResult ParseChallenge( |
| 247 HttpAuthChallengeTokenizer* tok); | 247 const HttpAuthChallengeTokenizer& tok); |
| 248 | 248 |
| 249 // Generates an authentication token. | 249 // Generates an authentication token. |
| 250 // | 250 // |
| 251 // The return value is an error code. The authentication token will be | 251 // The return value is an error code. The authentication token will be |
| 252 // returned in |*auth_token|. If the result code is not |OK|, the value of | 252 // returned in |*auth_token|. If the result code is not |OK|, the value of |
| 253 // |*auth_token| is unspecified. | 253 // |*auth_token| is unspecified. |
| 254 // | 254 // |
| 255 // If the operation cannot be completed synchronously, |ERR_IO_PENDING| will | 255 // If the operation cannot be completed synchronously, |ERR_IO_PENDING| will |
| 256 // be returned and the real result code will be passed to the completion | 256 // be returned and the real result code will be passed to the completion |
| 257 // callback. Otherwise the result code is returned immediately from this | 257 // callback. Otherwise the result code is returned immediately from this |
| (...skipping 30 matching lines...) Expand all Loading... |
| 288 gss_OID gss_oid_; | 288 gss_OID gss_oid_; |
| 289 GSSAPILibrary* library_; | 289 GSSAPILibrary* library_; |
| 290 std::string decoded_server_auth_token_; | 290 std::string decoded_server_auth_token_; |
| 291 ScopedSecurityContext scoped_sec_context_; | 291 ScopedSecurityContext scoped_sec_context_; |
| 292 bool can_delegate_; | 292 bool can_delegate_; |
| 293 }; | 293 }; |
| 294 | 294 |
| 295 } // namespace net | 295 } // namespace net |
| 296 | 296 |
| 297 #endif // NET_HTTP_HTTP_AUTH_GSSAPI_POSIX_H_ | 297 #endif // NET_HTTP_HTTP_AUTH_GSSAPI_POSIX_H_ |
| OLD | NEW |