| OLD | NEW |
| 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/third_party_host_authenticator.h" | 5 #include "remoting/protocol/third_party_host_authenticator.h" |
| 6 | 6 |
| 7 #include "base/base64.h" | 7 #include "base/base64.h" |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "remoting/base/constants.h" | 11 #include "remoting/base/constants.h" |
| 12 #include "remoting/base/rsa_key_pair.h" | 12 #include "remoting/base/rsa_key_pair.h" |
| 13 #include "remoting/protocol/token_validator.h" |
| 13 #include "remoting/protocol/v2_authenticator.h" | 14 #include "remoting/protocol/v2_authenticator.h" |
| 14 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" | 15 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" |
| 15 | 16 |
| 16 namespace remoting { | 17 namespace remoting { |
| 17 namespace protocol { | 18 namespace protocol { |
| 18 | 19 |
| 19 ThirdPartyHostAuthenticator::ThirdPartyHostAuthenticator( | 20 ThirdPartyHostAuthenticator::ThirdPartyHostAuthenticator( |
| 20 const std::string& local_cert, | 21 const std::string& local_cert, |
| 21 scoped_refptr<RsaKeyPair> key_pair, | 22 scoped_refptr<RsaKeyPair> key_pair, |
| 22 scoped_ptr<TokenValidator> token_validator) | 23 scoped_ptr<TokenValidator> token_validator) |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 | 86 |
| 86 // The other side already started the SPAKE authentication. | 87 // The other side already started the SPAKE authentication. |
| 87 token_state_ = ACCEPTED; | 88 token_state_ = ACCEPTED; |
| 88 underlying_ = V2Authenticator::CreateForHost( | 89 underlying_ = V2Authenticator::CreateForHost( |
| 89 local_cert_, key_pair_, shared_secret, WAITING_MESSAGE); | 90 local_cert_, key_pair_, shared_secret, WAITING_MESSAGE); |
| 90 underlying_->ProcessMessage(message, resume_callback); | 91 underlying_->ProcessMessage(message, resume_callback); |
| 91 } | 92 } |
| 92 | 93 |
| 93 } // namespace protocol | 94 } // namespace protocol |
| 94 } // namespace remoting | 95 } // namespace remoting |
| OLD | NEW |