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 #include "remoting/protocol/negotiating_authenticator.h" | 5 #include "remoting/protocol/negotiating_authenticator.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <sstream> | 8 #include <sstream> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/string_split.h" | 12 #include "base/strings/string_split.h" |
13 #include "crypto/rsa_private_key.h" | 13 #include "crypto/rsa_private_key.h" |
14 #include "remoting/protocol/channel_authenticator.h" | 14 #include "remoting/protocol/channel_authenticator.h" |
15 #include "remoting/protocol/v2_authenticator.h" | 15 #include "remoting/protocol/v2_authenticator.h" |
16 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" | 16 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" |
17 | 17 |
18 namespace remoting { | 18 namespace remoting { |
19 namespace protocol { | 19 namespace protocol { |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 current_authenticator_ = V2Authenticator::CreateForClient( | 238 current_authenticator_ = V2Authenticator::CreateForClient( |
239 AuthenticationMethod::ApplyHashFunction( | 239 AuthenticationMethod::ApplyHashFunction( |
240 current_method_.hash_function(), | 240 current_method_.hash_function(), |
241 authentication_tag_, shared_secret_), | 241 authentication_tag_, shared_secret_), |
242 initial_state); | 242 initial_state); |
243 } | 243 } |
244 } | 244 } |
245 | 245 |
246 } // namespace protocol | 246 } // namespace protocol |
247 } // namespace remoting | 247 } // namespace remoting |
OLD | NEW |