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

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: 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
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 AuthChallengeInfo::AuthChallengeInfo() : is_proxy(false) {
10 } 10 }
11 11
12 bool AuthChallengeInfo::operator==(const AuthChallengeInfo& that) const { 12 bool AuthChallengeInfo::operator==(const AuthChallengeInfo& that) const {
13 return (this->is_proxy == that.is_proxy && 13 return (this->is_proxy == that.is_proxy &&
14 this->host_and_port == that.host_and_port && 14 this->host_and_port == that.host_and_port &&
15 this->scheme == that.scheme && 15 this->scheme == that.scheme &&
16 this->realm == that.realm); 16 this->realm == that.realm);
17 } 17 }
18 18
19 void AuthChallengeInfo::Reset() {
20 is_proxy = false;
21 host_and_port.clear();
22 scheme.clear();
23 realm.clear();
24 }
25
19 AuthChallengeInfo::~AuthChallengeInfo() { 26 AuthChallengeInfo::~AuthChallengeInfo() {
20 } 27 }
21 28
22 AuthData::AuthData() : state(AUTH_STATE_NEED_AUTH) { 29 AuthData::AuthData() : state(AUTH_STATE_NEED_AUTH) {
23 } 30 }
24 31
25 AuthData::~AuthData() { 32 AuthData::~AuthData() {
26 } 33 }
27 34
28 } // namespace net 35 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698