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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/base/auth.h ('k') | net/base/connection_type_histograms.h » ('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 #include "net/base/auth.h" 5 #include "net/base/auth.h"
6 6
7 namespace net { 7 namespace net {
8 8
9 AuthChallengeInfo::AuthChallengeInfo() : is_proxy(false) { 9 const char kTLSSRPScheme[] = "tls-srp";
10
11 AuthChallengeInfo::AuthChallengeInfo() :
12 is_proxy(false),
13 over_protocol(AUTH_OVER_HTTP) {
10 } 14 }
11 15
12 bool AuthChallengeInfo::operator==(const AuthChallengeInfo& that) const { 16 bool AuthChallengeInfo::operator==(const AuthChallengeInfo& that) const {
13 return (this->is_proxy == that.is_proxy && 17 return (this->is_proxy == that.is_proxy &&
14 this->host_and_port == that.host_and_port && 18 this->host_and_port == that.host_and_port &&
15 this->scheme == that.scheme && 19 this->scheme == that.scheme &&
16 this->realm == that.realm); 20 this->realm == that.realm);
17 } 21 }
18 22
23 void AuthChallengeInfo::Reset() {
24 is_proxy = false;
25 host_and_port.clear();
26 scheme.clear();
27 realm.clear();
28 }
29
19 AuthChallengeInfo::~AuthChallengeInfo() { 30 AuthChallengeInfo::~AuthChallengeInfo() {
20 } 31 }
21 32
22 AuthData::AuthData() : state(AUTH_STATE_NEED_AUTH) { 33 AuthData::AuthData() :
34 state(AUTH_STATE_NEED_AUTH),
35 over_protocol(AUTH_OVER_HTTP) {
23 } 36 }
24 37
25 AuthData::~AuthData() { 38 AuthData::~AuthData() {
26 } 39 }
27 40
28 } // namespace net 41 } // namespace net
OLDNEW
« 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