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 "base/base64.h" | 7 #include "base/base64.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/ssl_hmac_channel_authenticator.h" | 11 #include "remoting/protocol/ssl_hmac_channel_authenticator.h" |
12 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" | 12 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" |
13 | 13 |
14 using crypto::P224EncryptedKeyExchange; | 14 using crypto::P224EncryptedKeyExchange; |
15 | 15 |
16 #if defined(_WIN32) && defined(GetMessage) | |
17 #undef GetMessage | |
18 #endif | |
19 | |
20 namespace remoting { | 16 namespace remoting { |
21 namespace protocol { | 17 namespace protocol { |
22 | 18 |
23 namespace { | 19 namespace { |
24 | 20 |
25 const buzz::StaticQName kEkeTag = { kChromotingXmlNamespace, | 21 const buzz::StaticQName kEkeTag = { kChromotingXmlNamespace, |
26 "eke-message" }; | 22 "eke-message" }; |
27 const buzz::StaticQName kCertificateTag = { kChromotingXmlNamespace, | 23 const buzz::StaticQName kCertificateTag = { kChromotingXmlNamespace, |
28 "certificate" }; | 24 "certificate" }; |
29 | 25 |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 remote_cert_, auth_key_); | 194 remote_cert_, auth_key_); |
199 } | 195 } |
200 } | 196 } |
201 | 197 |
202 bool V2Authenticator::is_host_side() const { | 198 bool V2Authenticator::is_host_side() const { |
203 return local_key_pair_.get() != nullptr; | 199 return local_key_pair_.get() != nullptr; |
204 } | 200 } |
205 | 201 |
206 } // namespace protocol | 202 } // namespace protocol |
207 } // namespace remoting | 203 } // namespace remoting |
OLD | NEW |