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

Unified Diff: net/base/auth.h

Issue 6804032: Add TLS-SRP (RFC 5054) support Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: remove "httpsv" scheme, minor NSS/OpenSSL changes Created 9 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/toolbar/toolbar_model.cc ('k') | net/base/auth.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/auth.h
diff --git a/net/base/auth.h b/net/base/auth.h
index 908b769086b8ab2624b1c25ef86a25ac8e106e6a..8e708fb1e7c1c2d892ecaf7bdae0af9fda8b059f 100644
--- a/net/base/auth.h
+++ b/net/base/auth.h
@@ -13,6 +13,14 @@
namespace net {
+extern const char kTLSSRPScheme[];
+
+// Protocols that use authentication
+enum AuthOverProtocol {
+ AUTH_OVER_HTTP,
+ AUTH_OVER_TLS
+};
+
// Holds info about an authentication challenge that we may want to display
// to the user.
class AuthChallengeInfo :
@@ -20,6 +28,8 @@ class AuthChallengeInfo :
public:
AuthChallengeInfo();
+ void Reset();
+
bool operator==(const AuthChallengeInfo& that) const;
bool operator!=(const AuthChallengeInfo& that) const {
@@ -32,6 +42,8 @@ class AuthChallengeInfo :
std::wstring scheme; // "Basic", "Digest", or whatever other method is used.
std::wstring realm; // the realm provided by the server, if there is one.
+ int over_protocol; // the protocol to authenticate over (HTTP or TLS).
+
private:
friend class base::RefCountedThreadSafe<AuthChallengeInfo>;
~AuthChallengeInfo();
@@ -51,6 +63,7 @@ class AuthData : public base::RefCountedThreadSafe<AuthData> {
std::wstring scheme; // the authentication scheme.
string16 username; // the username supplied to us for auth.
string16 password; // the password supplied to us for auth.
+ int over_protocol; // the protocol to authenticate over (HTTP or TLS).
// We wouldn't instantiate this class if we didn't need authentication.
AuthData();
« no previous file with comments | « chrome/browser/ui/toolbar/toolbar_model.cc ('k') | net/base/auth.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698