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

Unified Diff: remoting/protocol/me2me_host_authenticator_factory.cc

Issue 10317021: [Chromoting] Move SharedSecretHash from Me2MeHostAuthenticatorFactory to AuthenticationMethod. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync. Created 8 years, 8 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
« no previous file with comments | « remoting/protocol/me2me_host_authenticator_factory.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/me2me_host_authenticator_factory.cc
diff --git a/remoting/protocol/me2me_host_authenticator_factory.cc b/remoting/protocol/me2me_host_authenticator_factory.cc
index 8762a48619252b611545a41afc85ab6d8eb1cb83..776c2d1444e2111610c420bd2d5042eef8c717a3 100644
--- a/remoting/protocol/me2me_host_authenticator_factory.cc
+++ b/remoting/protocol/me2me_host_authenticator_factory.cc
@@ -57,27 +57,6 @@ class RejectingAuthenticator : public Authenticator {
} // namespace
-bool SharedSecretHash::Parse(const std::string& as_string) {
- size_t separator = as_string.find(':');
- if (separator == std::string::npos)
- return false;
-
- std::string function_name = as_string.substr(0, separator);
- if (function_name == "plain") {
- hash_function = AuthenticationMethod::NONE;
- } else if (function_name == "hmac") {
- hash_function = AuthenticationMethod::HMAC_SHA256;
- } else {
- return false;
- }
-
- if (!base::Base64Decode(as_string.substr(separator + 1), &value)) {
- return false;
- }
-
- return true;
-}
-
Me2MeHostAuthenticatorFactory::Me2MeHostAuthenticatorFactory(
const std::string& local_jid,
const std::string& local_cert,
« no previous file with comments | « remoting/protocol/me2me_host_authenticator_factory.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698