Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Side by Side Diff: net/http/http_auth_gssapi_posix.h

Issue 7748033: Don't try to use explicit credentials with schemes that don't support it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Unit test Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/http/http_auth_controller_unittest.cc ('k') | net/http/http_auth_gssapi_posix.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « net/http/http_auth_controller_unittest.cc ('k') | net/http/http_auth_gssapi_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698