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" |
(...skipping 16 matching lines...) Expand all Loading... |
27 {NegotiatingAuthenticatorBase::Method::SHARED_SECRET_PLAIN_SPAKE2_P224, | 27 {NegotiatingAuthenticatorBase::Method::SHARED_SECRET_PLAIN_SPAKE2_P224, |
28 "spake2_plain"}, | 28 "spake2_plain"}, |
29 | 29 |
30 {NegotiatingAuthenticatorBase::Method::SHARED_SECRET_SPAKE2_P224, | 30 {NegotiatingAuthenticatorBase::Method::SHARED_SECRET_SPAKE2_P224, |
31 "spake2_hmac"}, | 31 "spake2_hmac"}, |
32 {NegotiatingAuthenticatorBase::Method::SHARED_SECRET_SPAKE2_CURVE25519, | 32 {NegotiatingAuthenticatorBase::Method::SHARED_SECRET_SPAKE2_CURVE25519, |
33 "spake2_curve25519"}, | 33 "spake2_curve25519"}, |
34 | 34 |
35 {NegotiatingAuthenticatorBase::Method::PAIRED_SPAKE2_P224, | 35 {NegotiatingAuthenticatorBase::Method::PAIRED_SPAKE2_P224, |
36 "spake2_pair"}, | 36 "spake2_pair"}, |
| 37 {NegotiatingAuthenticatorBase::Method::PAIRED_SPAKE2_CURVE25519, |
| 38 "pair_spake2_curve25519"}, |
37 | 39 |
38 {NegotiatingAuthenticatorBase::Method::THIRD_PARTY_SPAKE2_P224, | 40 {NegotiatingAuthenticatorBase::Method::THIRD_PARTY_SPAKE2_P224, |
39 "third_party"}, | 41 "third_party"}, |
40 {NegotiatingAuthenticatorBase::Method::THIRD_PARTY_SPAKE2_CURVE25519, | 42 {NegotiatingAuthenticatorBase::Method::THIRD_PARTY_SPAKE2_CURVE25519, |
41 "third_party_spake2_curve25519"}, | 43 "third_party_spake2_curve25519"}, |
42 }; | 44 }; |
43 | 45 |
44 } // namespace | 46 } // namespace |
45 | 47 |
46 const buzz::StaticQName NegotiatingAuthenticatorBase::kMethodAttributeQName = { | 48 const buzz::StaticQName NegotiatingAuthenticatorBase::kMethodAttributeQName = { |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 } | 158 } |
157 | 159 |
158 scoped_ptr<ChannelAuthenticator> | 160 scoped_ptr<ChannelAuthenticator> |
159 NegotiatingAuthenticatorBase::CreateChannelAuthenticator() const { | 161 NegotiatingAuthenticatorBase::CreateChannelAuthenticator() const { |
160 DCHECK_EQ(state(), ACCEPTED); | 162 DCHECK_EQ(state(), ACCEPTED); |
161 return current_authenticator_->CreateChannelAuthenticator(); | 163 return current_authenticator_->CreateChannelAuthenticator(); |
162 } | 164 } |
163 | 165 |
164 } // namespace protocol | 166 } // namespace protocol |
165 } // namespace remoting | 167 } // namespace remoting |
OLD | NEW |