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/v2_authenticator.h" | 5 #include "remoting/protocol/v2_authenticator.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/base64.h" | 9 #include "base/base64.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
12 #include "remoting/base/constants.h" | 12 #include "remoting/base/constants.h" |
13 #include "remoting/base/rsa_key_pair.h" | 13 #include "remoting/base/rsa_key_pair.h" |
14 #include "remoting/protocol/ssl_hmac_channel_authenticator.h" | 14 #include "remoting/protocol/ssl_hmac_channel_authenticator.h" |
15 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" | 15 #include "third_party/libjingle_xmpp/xmllite/xmlelement.h" |
16 | 16 |
17 using crypto::P224EncryptedKeyExchange; | 17 using crypto::P224EncryptedKeyExchange; |
18 | 18 |
19 namespace remoting { | 19 namespace remoting { |
20 namespace protocol { | 20 namespace protocol { |
21 | 21 |
22 namespace { | 22 namespace { |
23 | 23 |
24 const buzz::StaticQName kEkeTag = { kChromotingXmlNamespace, | 24 const buzz::StaticQName kEkeTag = { kChromotingXmlNamespace, |
25 "eke-message" }; | 25 "eke-message" }; |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 remote_cert_, auth_key_); | 201 remote_cert_, auth_key_); |
202 } | 202 } |
203 } | 203 } |
204 | 204 |
205 bool V2Authenticator::is_host_side() const { | 205 bool V2Authenticator::is_host_side() const { |
206 return local_key_pair_.get() != nullptr; | 206 return local_key_pair_.get() != nullptr; |
207 } | 207 } |
208 | 208 |
209 } // namespace protocol | 209 } // namespace protocol |
210 } // namespace remoting | 210 } // namespace remoting |
OLD | NEW |