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

Unified Diff: remoting/client/plugin/chromoting_instance.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, 10 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 side-by-side diff with in-line comments
Download patch
Index: remoting/client/plugin/chromoting_instance.cc
diff --git a/remoting/client/plugin/chromoting_instance.cc b/remoting/client/plugin/chromoting_instance.cc
index 23f60af335ac6b7fc45face543e99e828f0081a4..b57f18860d55b46222f31eee042b7bd31364880f 100644
--- a/remoting/client/plugin/chromoting_instance.cc
+++ b/remoting/client/plugin/chromoting_instance.cc
@@ -705,12 +705,12 @@ void ChromotingInstance::HandleConnect(const base::DictionaryValue& data) {
host_public_key));
std::vector<protocol::AuthenticationMethod> auth_methods;
- auth_methods.push_back(protocol::AuthenticationMethod::ThirdParty());
- auth_methods.push_back(protocol::AuthenticationMethod::Spake2Pair());
- auth_methods.push_back(protocol::AuthenticationMethod::Spake2(
- protocol::AuthenticationMethod::HMAC_SHA256));
- auth_methods.push_back(protocol::AuthenticationMethod::Spake2(
- protocol::AuthenticationMethod::NONE));
+ auth_methods.push_back(protocol::AuthenticationMethod::THIRD_PARTY);
+ auth_methods.push_back(protocol::AuthenticationMethod::SPAKE2_PAIR);
+ auth_methods.push_back(
+ protocol::AuthenticationMethod::SPAKE2_SHARED_SECRET_HMAC);
+ auth_methods.push_back(
+ protocol::AuthenticationMethod::SPAKE2_SHARED_SECRET_PLAIN);
scoped_ptr<protocol::Authenticator> authenticator(
new protocol::NegotiatingClientAuthenticator(

Powered by Google App Engine
This is Rietveld 408576698