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

Side by Side Diff: remoting/protocol/pairing_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/pairing_client_authenticator.h" 5 #include "remoting/protocol/pairing_client_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/authentication_method.h" 11 #include "remoting/protocol/authentication_method.h"
12 #include "remoting/protocol/channel_authenticator.h" 12 #include "remoting/protocol/channel_authenticator.h"
13 #include "remoting/protocol/v2_authenticator.h" 13 #include "remoting/protocol/v2_authenticator.h"
14 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" 14 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h"
15 15
16 namespace remoting { 16 namespace remoting {
17 namespace protocol { 17 namespace protocol {
18 18
19 PairingClientAuthenticator::PairingClientAuthenticator( 19 PairingClientAuthenticator::PairingClientAuthenticator(
20 const std::string& client_id, 20 const std::string& client_id,
21 const std::string& paired_secret, 21 const std::string& paired_secret,
22 const FetchSecretCallback& fetch_pin_callback, 22 const FetchSecretCallback& fetch_pin_callback,
23 const std::string& authentication_tag) 23 const std::string& authentication_tag)
24 : sent_client_id_(false), 24 : sent_client_id_(false),
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 const std::string& pin) { 63 const std::string& pin) {
64 callback.Run(V2Authenticator::CreateForClient( 64 callback.Run(V2Authenticator::CreateForClient(
65 AuthenticationMethod::ApplyHashFunction( 65 AuthenticationMethod::ApplyHashFunction(
66 AuthenticationMethod::HMAC_SHA256, 66 AuthenticationMethod::HMAC_SHA256,
67 authentication_tag_, pin), 67 authentication_tag_, pin),
68 initial_state)); 68 initial_state));
69 } 69 }
70 70
71 } // namespace protocol 71 } // namespace protocol
72 } // namespace remoting 72 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/pairing_authenticator_base.h ('k') | remoting/protocol/pairing_host_authenticator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698