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

Side by Side Diff: remoting/test/host_info.cc

Issue 1755273003: Simplify AuthenticationMethod type and PIN hash handling. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/authentication_method.h" 5 #include "remoting/protocol/authentication_method.h"
6 #include "remoting/test/host_info.h" 6 #include "remoting/test/host_info.h"
7 7
8 #include "base/logging.h" 8 #include "base/logging.h"
9 9
10 namespace remoting { 10 namespace remoting {
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 ConnectionSetupInfo connection_setup_info; 84 ConnectionSetupInfo connection_setup_info;
85 connection_setup_info.access_token = access_token; 85 connection_setup_info.access_token = access_token;
86 connection_setup_info.host_id = host_id; 86 connection_setup_info.host_id = host_id;
87 connection_setup_info.host_jid = host_jid; 87 connection_setup_info.host_jid = host_jid;
88 connection_setup_info.host_name = host_name; 88 connection_setup_info.host_name = host_name;
89 connection_setup_info.pin = pin; 89 connection_setup_info.pin = pin;
90 connection_setup_info.public_key = public_key; 90 connection_setup_info.public_key = public_key;
91 connection_setup_info.user_name = user_name; 91 connection_setup_info.user_name = user_name;
92 92
93 connection_setup_info.auth_methods.push_back( 93 connection_setup_info.auth_methods.push_back(
94 protocol::AuthenticationMethod::Spake2Pair()); 94 protocol::AuthenticationMethod::SPAKE2_PAIR);
95 connection_setup_info.auth_methods.push_back( 95 connection_setup_info.auth_methods.push_back(
96 protocol::AuthenticationMethod::Spake2( 96 protocol::AuthenticationMethod::SPAKE2_SHARED_SECRET_PLAIN);
97 protocol::AuthenticationMethod::HashFunction::NONE));
98 connection_setup_info.auth_methods.push_back( 97 connection_setup_info.auth_methods.push_back(
99 protocol::AuthenticationMethod::Spake2( 98 protocol::AuthenticationMethod::SPAKE2_SHARED_SECRET_HMAC);
100 protocol::AuthenticationMethod::HashFunction::HMAC_SHA256));
101 connection_setup_info.auth_methods.push_back( 99 connection_setup_info.auth_methods.push_back(
102 protocol::AuthenticationMethod::ThirdParty()); 100 protocol::AuthenticationMethod::THIRD_PARTY);
103 101
104 return connection_setup_info; 102 return connection_setup_info;
105 } 103 }
106 104
107 } // namespace test 105 } // namespace test
108 } // namespace remoting 106 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698