Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Side by Side Diff: remoting/protocol/negotiating_host_authenticator.cc

Issue 1944553002: Fix IT2Me protocol error connecting to old hosts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reviewer feedback. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « remoting/protocol/negotiating_client_authenticator.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « remoting/protocol/negotiating_client_authenticator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698