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

Unified Diff: net/base/auth.cc

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 | « net/base/auth.h ('k') | net/base/connection_type_histograms.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/auth.cc
diff --git a/net/base/auth.cc b/net/base/auth.cc
index 08b869cb7256a9545bfa1dd470008d12426b5955..8894eeb4f7261534725cb6ca0122a23e11b64fe2 100644
--- a/net/base/auth.cc
+++ b/net/base/auth.cc
@@ -6,7 +6,11 @@
namespace net {
-AuthChallengeInfo::AuthChallengeInfo() : is_proxy(false) {
+const char kTLSSRPScheme[] = "tls-srp";
+
+AuthChallengeInfo::AuthChallengeInfo() :
+ is_proxy(false),
+ over_protocol(AUTH_OVER_HTTP) {
}
bool AuthChallengeInfo::operator==(const AuthChallengeInfo& that) const {
@@ -16,10 +20,19 @@ bool AuthChallengeInfo::operator==(const AuthChallengeInfo& that) const {
this->realm == that.realm);
}
+void AuthChallengeInfo::Reset() {
+ is_proxy = false;
+ host_and_port.clear();
+ scheme.clear();
+ realm.clear();
+}
+
AuthChallengeInfo::~AuthChallengeInfo() {
}
-AuthData::AuthData() : state(AUTH_STATE_NEED_AUTH) {
+AuthData::AuthData() :
+ state(AUTH_STATE_NEED_AUTH),
+ over_protocol(AUTH_OVER_HTTP) {
}
AuthData::~AuthData() {
« no previous file with comments | « net/base/auth.h ('k') | net/base/connection_type_histograms.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698