| 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/negotiating_authenticator_base.h" | 5 #include "remoting/protocol/negotiating_authenticator_base.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/base/rsa_key_pair.h" | 14 #include "remoting/base/rsa_key_pair.h" |
| 15 #include "remoting/protocol/channel_authenticator.h" | 15 #include "remoting/protocol/channel_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 const buzz::StaticQName NegotiatingAuthenticatorBase::kMethodAttributeQName = | 22 const buzz::StaticQName NegotiatingAuthenticatorBase::kMethodAttributeQName = |
| 23 { "", "method" }; | 23 { "", "method" }; |
| 24 const buzz::StaticQName | 24 const buzz::StaticQName |
| 25 NegotiatingAuthenticatorBase::kSupportedMethodsAttributeQName = | 25 NegotiatingAuthenticatorBase::kSupportedMethodsAttributeQName = |
| 26 { "", "supported-methods" }; | 26 { "", "supported-methods" }; |
| 27 const char NegotiatingAuthenticatorBase::kSupportedMethodsSeparator = ','; | 27 const char NegotiatingAuthenticatorBase::kSupportedMethodsSeparator = ','; |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 } | 104 } |
| 105 | 105 |
| 106 scoped_ptr<ChannelAuthenticator> | 106 scoped_ptr<ChannelAuthenticator> |
| 107 NegotiatingAuthenticatorBase::CreateChannelAuthenticator() const { | 107 NegotiatingAuthenticatorBase::CreateChannelAuthenticator() const { |
| 108 DCHECK_EQ(state(), ACCEPTED); | 108 DCHECK_EQ(state(), ACCEPTED); |
| 109 return current_authenticator_->CreateChannelAuthenticator(); | 109 return current_authenticator_->CreateChannelAuthenticator(); |
| 110 } | 110 } |
| 111 | 111 |
| 112 } // namespace protocol | 112 } // namespace protocol |
| 113 } // namespace remoting | 113 } // namespace remoting |
| OLD | NEW |