OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "remoting/protocol/pairing_host_authenticator.h" | 5 #include "remoting/protocol/pairing_host_authenticator.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "remoting/base/constants.h" | 9 #include "remoting/base/constants.h" |
10 #include "remoting/base/rsa_key_pair.h" | 10 #include "remoting/base/rsa_key_pair.h" |
11 #include "remoting/protocol/channel_authenticator.h" | 11 #include "remoting/protocol/channel_authenticator.h" |
12 #include "remoting/protocol/v2_authenticator.h" | 12 #include "remoting/protocol/v2_authenticator.h" |
13 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" | 13 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" |
14 | 14 |
15 namespace remoting { | 15 namespace remoting { |
16 namespace protocol { | 16 namespace protocol { |
17 | 17 |
18 PairingHostAuthenticator::PairingHostAuthenticator( | 18 PairingHostAuthenticator::PairingHostAuthenticator( |
19 scoped_refptr<PairingRegistry> pairing_registry, | 19 scoped_refptr<PairingRegistry> pairing_registry, |
20 const std::string& local_cert, | 20 const std::string& local_cert, |
21 scoped_refptr<RsaKeyPair> key_pair, | 21 scoped_refptr<RsaKeyPair> key_pair, |
22 const std::string& pin) | 22 const std::string& pin) |
23 : pairing_registry_(pairing_registry), | 23 : pairing_registry_(pairing_registry), |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 v2_authenticator_ = V2Authenticator::CreateForHost( | 111 v2_authenticator_ = V2Authenticator::CreateForHost( |
112 local_cert_, key_pair_, pin_, MESSAGE_READY); | 112 local_cert_, key_pair_, pin_, MESSAGE_READY); |
113 // The client's optimistic SPAKE message is using a Paired Secret to | 113 // The client's optimistic SPAKE message is using a Paired Secret to |
114 // which the host doesn't have access, so don't bother processing it. | 114 // which the host doesn't have access, so don't bother processing it. |
115 resume_callback.Run(); | 115 resume_callback.Run(); |
116 } | 116 } |
117 } | 117 } |
118 | 118 |
119 } // namespace protocol | 119 } // namespace protocol |
120 } // namespace remoting | 120 } // namespace remoting |
OLD | NEW |