OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |