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

Unified Diff: remoting/protocol/it2me_host_authenticator_factory.cc

Issue 1799293002: Remove spake2_plain authentication method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pair_spake
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 side-by-side diff with in-line comments
Download patch
Index: remoting/protocol/it2me_host_authenticator_factory.cc
diff --git a/remoting/protocol/it2me_host_authenticator_factory.cc b/remoting/protocol/it2me_host_authenticator_factory.cc
index 0a2e5f032debf6737d8ada97dfbe611b128d9083..fb894260bae6a7f6fb7d496a3b2d2e0b3a1bedd8 100644
--- a/remoting/protocol/it2me_host_authenticator_factory.cc
+++ b/remoting/protocol/it2me_host_authenticator_factory.cc
@@ -16,11 +16,11 @@ namespace protocol {
It2MeHostAuthenticatorFactory::It2MeHostAuthenticatorFactory(
const std::string& local_cert,
scoped_refptr<RsaKeyPair> key_pair,
- const std::string& access_code,
+ const std::string& access_code_hash,
const std::string& required_client_domain)
: local_cert_(local_cert),
key_pair_(key_pair),
- access_code_(access_code),
+ access_code_hash_(access_code_hash),
required_client_domain_(required_client_domain) {}
It2MeHostAuthenticatorFactory::~It2MeHostAuthenticatorFactory() {}
@@ -45,8 +45,9 @@ scoped_ptr<Authenticator> It2MeHostAuthenticatorFactory::CreateAuthenticator(
}
}
- return NegotiatingHostAuthenticator::CreateForIt2Me(
- local_jid, remote_jid, local_cert_, key_pair_, access_code_);
+ return NegotiatingHostAuthenticator::CreateWithSharedSecret(
+ local_jid, remote_jid, local_cert_, key_pair_, access_code_hash_,
+ nullptr);
}
} // namespace protocol
« no previous file with comments | « remoting/protocol/it2me_host_authenticator_factory.h ('k') | remoting/protocol/me2me_host_authenticator_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698