| 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_host_authenticator.h" | 5 #include "remoting/protocol/negotiating_host_authenticator.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <sstream> | 8 #include <sstream> |
| 9 #include <utility> |
| 9 | 10 |
| 10 #include "base/bind.h" | 11 #include "base/bind.h" |
| 11 #include "base/callback.h" | 12 #include "base/callback.h" |
| 12 #include "base/logging.h" | 13 #include "base/logging.h" |
| 13 #include "base/strings/string_split.h" | 14 #include "base/strings/string_split.h" |
| 14 #include "remoting/base/rsa_key_pair.h" | 15 #include "remoting/base/rsa_key_pair.h" |
| 15 #include "remoting/protocol/channel_authenticator.h" | 16 #include "remoting/protocol/channel_authenticator.h" |
| 16 #include "remoting/protocol/pairing_host_authenticator.h" | 17 #include "remoting/protocol/pairing_host_authenticator.h" |
| 17 #include "remoting/protocol/pairing_registry.h" | 18 #include "remoting/protocol/pairing_registry.h" |
| 18 #include "remoting/protocol/token_validator.h" | 19 #include "remoting/protocol/token_validator.h" |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 current_method_.type() == AuthenticationMethod::SPAKE2_PAIR); | 182 current_method_.type() == AuthenticationMethod::SPAKE2_PAIR); |
| 182 current_authenticator_ = V2Authenticator::CreateForHost( | 183 current_authenticator_ = V2Authenticator::CreateForHost( |
| 183 local_cert_, local_key_pair_, shared_secret_hash_, | 184 local_cert_, local_key_pair_, shared_secret_hash_, |
| 184 preferred_initial_state); | 185 preferred_initial_state); |
| 185 } | 186 } |
| 186 resume_callback.Run(); | 187 resume_callback.Run(); |
| 187 } | 188 } |
| 188 | 189 |
| 189 } // namespace protocol | 190 } // namespace protocol |
| 190 } // namespace remoting | 191 } // namespace remoting |
| OLD | NEW |