Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(307)

Side by Side Diff: remoting/protocol/negotiating_client_authenticator.cc

Issue 545003004: Roll WebRTC 7011:7046 libjingle: 7007:7045 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/strings/string_split.h" 13 #include "base/strings/string_split.h"
14 #include "remoting/protocol/channel_authenticator.h" 14 #include "remoting/protocol/channel_authenticator.h"
15 #include "remoting/protocol/pairing_client_authenticator.h" 15 #include "remoting/protocol/pairing_client_authenticator.h"
16 #include "remoting/protocol/v2_authenticator.h" 16 #include "remoting/protocol/v2_authenticator.h"
17 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" 17 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h"
18 18
19 namespace remoting { 19 namespace remoting {
20 namespace protocol { 20 namespace protocol {
21 21
22 NegotiatingClientAuthenticator::NegotiatingClientAuthenticator( 22 NegotiatingClientAuthenticator::NegotiatingClientAuthenticator(
23 const std::string& client_pairing_id, 23 const std::string& client_pairing_id,
24 const std::string& shared_secret, 24 const std::string& shared_secret,
25 const std::string& authentication_tag, 25 const std::string& authentication_tag,
26 const FetchSecretCallback& fetch_secret_callback, 26 const FetchSecretCallback& fetch_secret_callback,
27 scoped_ptr<ThirdPartyClientAuthenticator::TokenFetcher> token_fetcher, 27 scoped_ptr<ThirdPartyClientAuthenticator::TokenFetcher> token_fetcher,
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 const std::string& shared_secret) { 153 const std::string& shared_secret) {
154 current_authenticator_ = V2Authenticator::CreateForClient( 154 current_authenticator_ = V2Authenticator::CreateForClient(
155 AuthenticationMethod::ApplyHashFunction( 155 AuthenticationMethod::ApplyHashFunction(
156 current_method_.hash_function(), authentication_tag_, shared_secret), 156 current_method_.hash_function(), authentication_tag_, shared_secret),
157 initial_state); 157 initial_state);
158 resume_callback.Run(); 158 resume_callback.Run();
159 } 159 }
160 160
161 } // namespace protocol 161 } // namespace protocol
162 } // namespace remoting 162 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/negotiating_authenticator_unittest.cc ('k') | remoting/protocol/negotiating_host_authenticator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698