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

Unified Diff: remoting/protocol/auth_util.h

Issue 1768383004: Cleanup AuthenticatorMethod usage. (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 side-by-side diff with in-line comments
Download patch
Index: remoting/protocol/auth_util.h
diff --git a/remoting/protocol/auth_util.h b/remoting/protocol/auth_util.h
index 61f98cf3d423326fb12bdb7b66c741b79c223a8f..8cc5cfdc1a74cdfba3d4d439020ccc1767764bd4 100644
--- a/remoting/protocol/auth_util.h
+++ b/remoting/protocol/auth_util.h
@@ -31,18 +31,10 @@ const size_t kSharedSecretHashLength = 32;
// Size of the HMAC-SHA-256 digest used for channel authentication.
const size_t kAuthDigestLength = 32;
-// TODO(sergeyu): The following two methods are used for V1
-// authentication. Remove them when we finally switch to V2
-// authentication method. crbug.com/110483 .
-
-// Generates auth token for the specified |jid| and |access_code|.
-std::string GenerateSupportAuthToken(const std::string& jid,
- const std::string& access_code);
-
-// Verifies validity of an |access_token|.
-bool VerifySupportAuthToken(const std::string& jid,
- const std::string& access_code,
- const std::string& auth_token);
+// Applies the specified hash function to |shared_secret| with the
Jamie 2016/03/08 02:17:38 There is no specified hash function. Perhaps s/the
Sergey Ulanov 2016/03/08 18:32:40 Done.
+// specified |tag| as a key.
+std::string GetSharedSecretHash(const std::string& tag,
+ const std::string& shared_secret);
// Returns authentication bytes that must be used for the given
// |socket|. Empty string is returned in case of failure.

Powered by Google App Engine
This is Rietveld 408576698