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

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

Issue 3360017: Fix multi-round authentication.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: SocketStream fix Created 10 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_handler_basic_unittest.cc ('k') | net/http/http_auth_handler_digest.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) 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_HANDLER_DIGEST_H_ 5 #ifndef NET_HTTP_HTTP_AUTH_HANDLER_DIGEST_H_
6 #define NET_HTTP_HTTP_AUTH_HANDLER_DIGEST_H_ 6 #define NET_HTTP_HTTP_AUTH_HANDLER_DIGEST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 14 matching lines...) Expand all
25 25
26 virtual int CreateAuthHandler(HttpAuth::ChallengeTokenizer* challenge, 26 virtual int CreateAuthHandler(HttpAuth::ChallengeTokenizer* challenge,
27 HttpAuth::Target target, 27 HttpAuth::Target target,
28 const GURL& origin, 28 const GURL& origin,
29 CreateReason reason, 29 CreateReason reason,
30 int digest_nonce_count, 30 int digest_nonce_count,
31 const BoundNetLog& net_log, 31 const BoundNetLog& net_log,
32 scoped_ptr<HttpAuthHandler>* handler); 32 scoped_ptr<HttpAuthHandler>* handler);
33 }; 33 };
34 34
35 HttpAuth::AuthorizationResult HandleAnotherChallenge(
36 HttpAuth::ChallengeTokenizer* challenge);
37
35 protected: 38 protected:
36 virtual bool Init(HttpAuth::ChallengeTokenizer* challenge) { 39 virtual bool Init(HttpAuth::ChallengeTokenizer* challenge);
37 return ParseChallenge(challenge);
38 }
39 40
40 virtual int GenerateAuthTokenImpl(const string16* username, 41 virtual int GenerateAuthTokenImpl(const string16* username,
41 const string16* password, 42 const string16* password,
42 const HttpRequestInfo* request, 43 const HttpRequestInfo* request,
43 CompletionCallback* callback, 44 CompletionCallback* callback,
44 std::string* auth_token); 45 std::string* auth_token);
45 46
46 private: 47 private:
47 FRIEND_TEST_ALL_PREFIXES(HttpAuthHandlerDigestTest, ParseChallenge); 48 FRIEND_TEST_ALL_PREFIXES(HttpAuthHandlerDigestTest, ParseChallenge);
48 FRIEND_TEST_ALL_PREFIXES(HttpAuthHandlerDigestTest, AssembleCredentials); 49 FRIEND_TEST_ALL_PREFIXES(HttpAuthHandlerDigestTest, AssembleCredentials);
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 126
126 int nonce_count_; 127 int nonce_count_;
127 128
128 // Forces the cnonce to be the same each time, for unit tests. 129 // Forces the cnonce to be the same each time, for unit tests.
129 static bool fixed_cnonce_; 130 static bool fixed_cnonce_;
130 }; 131 };
131 132
132 } // namespace net 133 } // namespace net
133 134
134 #endif // NET_HTTP_HTTP_AUTH_HANDLER_DIGEST_H_ 135 #endif // NET_HTTP_HTTP_AUTH_HANDLER_DIGEST_H_
OLDNEW
« no previous file with comments | « net/http/http_auth_handler_basic_unittest.cc ('k') | net/http/http_auth_handler_digest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698