| 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_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 <gssapi.h> | 9 #include <gssapi.h> |
| 10 | 10 |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 public: | 227 public: |
| 228 HttpAuthGSSAPI(GSSAPILibrary* library, | 228 HttpAuthGSSAPI(GSSAPILibrary* library, |
| 229 const std::string& scheme, | 229 const std::string& scheme, |
| 230 const gss_OID gss_oid); | 230 const gss_OID gss_oid); |
| 231 ~HttpAuthGSSAPI(); | 231 ~HttpAuthGSSAPI(); |
| 232 | 232 |
| 233 bool Init(); | 233 bool Init(); |
| 234 | 234 |
| 235 bool NeedsIdentity() const; | 235 bool NeedsIdentity() const; |
| 236 | 236 |
| 237 bool AllowsExplicitCredentials() const; |
| 238 |
| 237 HttpAuth::AuthorizationResult ParseChallenge( | 239 HttpAuth::AuthorizationResult ParseChallenge( |
| 238 HttpAuth::ChallengeTokenizer* tok); | 240 HttpAuth::ChallengeTokenizer* tok); |
| 239 | 241 |
| 240 // Generates an authentication token. | 242 // Generates an authentication token. |
| 241 // The return value is an error code. If it's not |OK|, the value of | 243 // The return value is an error code. If it's not |OK|, the value of |
| 242 // |*auth_token| is unspecified. | 244 // |*auth_token| is unspecified. |
| 243 // |spn| is the Service Principal Name of the server that the token is | 245 // |spn| is the Service Principal Name of the server that the token is |
| 244 // being generated for. | 246 // being generated for. |
| 245 // If this is the first round of a multiple round scheme, credentials are | 247 // If this is the first round of a multiple round scheme, credentials are |
| 246 // obtained using |*username| and |*password|. If |username| and |password| | 248 // obtained using |*username| and |*password|. If |username| and |password| |
| (...skipping 17 matching lines...) Expand all Loading... |
| 264 gss_OID gss_oid_; | 266 gss_OID gss_oid_; |
| 265 GSSAPILibrary* library_; | 267 GSSAPILibrary* library_; |
| 266 std::string decoded_server_auth_token_; | 268 std::string decoded_server_auth_token_; |
| 267 ScopedSecurityContext scoped_sec_context_; | 269 ScopedSecurityContext scoped_sec_context_; |
| 268 bool can_delegate_; | 270 bool can_delegate_; |
| 269 }; | 271 }; |
| 270 | 272 |
| 271 } // namespace net | 273 } // namespace net |
| 272 | 274 |
| 273 #endif // NET_HTTP_HTTP_AUTH_GSSAPI_POSIX_H_ | 275 #endif // NET_HTTP_HTTP_AUTH_GSSAPI_POSIX_H_ |
| OLD | NEW |