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

Side by Side Diff: remoting/protocol/v2_authenticator.h

Issue 1739503003: Ignore host certificate in remoting::V2Authenticator on the client side. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 REMOTING_PROTOCOL_V2_AUTHENTICATOR_H_ 5 #ifndef REMOTING_PROTOCOL_V2_AUTHENTICATOR_H_
6 #define REMOTING_PROTOCOL_V2_AUTHENTICATOR_H_ 6 #define REMOTING_PROTOCOL_V2_AUTHENTICATOR_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <string> 9 #include <string>
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 virtual void ProcessMessageInternal(const buzz::XmlElement* message); 57 virtual void ProcessMessageInternal(const buzz::XmlElement* message);
58 58
59 bool is_host_side() const; 59 bool is_host_side() const;
60 60
61 // Used only for host authenticators. 61 // Used only for host authenticators.
62 std::string local_cert_; 62 std::string local_cert_;
63 scoped_refptr<RsaKeyPair> local_key_pair_; 63 scoped_refptr<RsaKeyPair> local_key_pair_;
64 bool certificate_sent_; 64 bool certificate_sent_;
65 65
66 // Used only for client authenticators.
67 std::string remote_cert_;
68
69 // Used for both host and client authenticators. 66 // Used for both host and client authenticators.
70 crypto::P224EncryptedKeyExchange key_exchange_impl_; 67 crypto::P224EncryptedKeyExchange key_exchange_impl_;
71 State state_; 68 State state_;
72 bool started_; 69 bool started_;
73 RejectionReason rejection_reason_; 70 RejectionReason rejection_reason_;
74 std::queue<std::string> pending_messages_; 71 std::queue<std::string> pending_messages_;
75 std::string auth_key_; 72 std::string auth_key_;
76 73
77 DISALLOW_COPY_AND_ASSIGN(V2Authenticator); 74 DISALLOW_COPY_AND_ASSIGN(V2Authenticator);
78 }; 75 };
79 76
80 } // namespace protocol 77 } // namespace protocol
81 } // namespace remoting 78 } // namespace remoting
82 79
83 #endif // REMOTING_PROTOCOL_V2_AUTHENTICATOR_H_ 80 #endif // REMOTING_PROTOCOL_V2_AUTHENTICATOR_H_
OLDNEW
« no previous file with comments | « remoting/protocol/ssl_hmac_channel_authenticator_unittest.cc ('k') | remoting/protocol/v2_authenticator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698