| 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/negotiating_host_authenticator.h" | 5 #include "remoting/protocol/negotiating_host_authenticator.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <sstream> | 8 #include <sstream> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 break; | 224 break; |
| 225 } | 225 } |
| 226 | 226 |
| 227 case Method::SHARED_SECRET_SPAKE2_CURVE25519: | 227 case Method::SHARED_SECRET_SPAKE2_CURVE25519: |
| 228 current_authenticator_ = Spake2Authenticator::CreateForHost( | 228 current_authenticator_ = Spake2Authenticator::CreateForHost( |
| 229 local_id_, remote_id_, local_cert_, local_key_pair_, | 229 local_id_, remote_id_, local_cert_, local_key_pair_, |
| 230 shared_secret_hash_, preferred_initial_state); | 230 shared_secret_hash_, preferred_initial_state); |
| 231 resume_callback.Run(); | 231 resume_callback.Run(); |
| 232 break; | 232 break; |
| 233 | 233 |
| 234 case Method::SHARED_SECRET_PLAIN_SPAKE2_P224: |
| 234 case Method::SHARED_SECRET_SPAKE2_P224: | 235 case Method::SHARED_SECRET_SPAKE2_P224: |
| 235 current_authenticator_ = V2Authenticator::CreateForHost( | 236 current_authenticator_ = V2Authenticator::CreateForHost( |
| 236 local_cert_, local_key_pair_, shared_secret_hash_, | 237 local_cert_, local_key_pair_, shared_secret_hash_, |
| 237 preferred_initial_state); | 238 preferred_initial_state); |
| 238 resume_callback.Run(); | 239 resume_callback.Run(); |
| 239 break; | 240 break; |
| 240 } | 241 } |
| 241 } | 242 } |
| 242 | 243 |
| 243 } // namespace protocol | 244 } // namespace protocol |
| 244 } // namespace remoting | 245 } // namespace remoting |
| OLD | NEW |