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

Unified Diff: remoting/protocol/authentication_method.h

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 | « no previous file | remoting/protocol/authentication_method.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/authentication_method.h
diff --git a/remoting/protocol/authentication_method.h b/remoting/protocol/authentication_method.h
index 6702187c337b7bd6c2e911a9e572ea2ba5187c8d..a4f003e8311d1322d33bcf9880db251b33b8c4a5 100644
--- a/remoting/protocol/authentication_method.h
+++ b/remoting/protocol/authentication_method.h
@@ -69,6 +69,17 @@ class AuthenticationMethod {
HashFunction hash_function_;
};
+// SharedSecretHash stores hash of a host secret paired with the type
+// of the hashing function.
+struct SharedSecretHash {
+ AuthenticationMethod::HashFunction hash_function;
+ std::string value;
+
+ // Parse string representation of a shared secret hash. The |as_string|
+ // must be in form "<hash_function>:<hash_value_base64>".
+ bool Parse(const std::string& as_string);
+};
+
} // namespace protocol
} // namespace remoting
« no previous file with comments | « no previous file | remoting/protocol/authentication_method.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698