| 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/negotiating_client_authenticator.h" | 5 #include "remoting/protocol/negotiating_client_authenticator.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <sstream> | 8 #include <sstream> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| 11 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "base/callback.h" | 12 #include "base/callback.h" |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/memory/ptr_util.h" | 14 #include "base/memory/ptr_util.h" |
| 15 #include "base/strings/string_split.h" | 15 #include "base/strings/string_split.h" |
| 16 #include "remoting/protocol/auth_util.h" | 16 #include "remoting/protocol/auth_util.h" |
| 17 #include "remoting/protocol/channel_authenticator.h" | 17 #include "remoting/protocol/channel_authenticator.h" |
| 18 #include "remoting/protocol/pairing_client_authenticator.h" | 18 #include "remoting/protocol/pairing_client_authenticator.h" |
| 19 #include "remoting/protocol/spake2_authenticator.h" | 19 #include "remoting/protocol/spake2_authenticator.h" |
| 20 #include "remoting/protocol/v2_authenticator.h" | 20 #include "remoting/protocol/v2_authenticator.h" |
| 21 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" | 21 #include "third_party/xmllite/xmlelement.h" |
| 22 | 22 |
| 23 namespace remoting { | 23 namespace remoting { |
| 24 namespace protocol { | 24 namespace protocol { |
| 25 | 25 |
| 26 NegotiatingClientAuthenticator::NegotiatingClientAuthenticator( | 26 NegotiatingClientAuthenticator::NegotiatingClientAuthenticator( |
| 27 const std::string& local_id, | 27 const std::string& local_id, |
| 28 const std::string& remote_id, | 28 const std::string& remote_id, |
| 29 const ClientAuthenticationConfig& config) | 29 const ClientAuthenticationConfig& config) |
| 30 : NegotiatingAuthenticatorBase(MESSAGE_READY), | 30 : NegotiatingAuthenticatorBase(MESSAGE_READY), |
| 31 local_id_(local_id), | 31 local_id_(local_id), |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 } | 210 } |
| 211 resume_callback.Run(); | 211 resume_callback.Run(); |
| 212 } | 212 } |
| 213 | 213 |
| 214 bool NegotiatingClientAuthenticator::is_paired() { | 214 bool NegotiatingClientAuthenticator::is_paired() { |
| 215 return !config_.pairing_client_id.empty() && !config_.pairing_secret.empty(); | 215 return !config_.pairing_client_id.empty() && !config_.pairing_secret.empty(); |
| 216 } | 216 } |
| 217 | 217 |
| 218 } // namespace protocol | 218 } // namespace protocol |
| 219 } // namespace remoting | 219 } // namespace remoting |
| OLD | NEW |