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

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
« no previous file with comments | « remoting/host/pin_hash.cc ('k') | remoting/protocol/auth_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/auth_util.h
diff --git a/remoting/protocol/auth_util.h b/remoting/protocol/auth_util.h
index 61f98cf3d423326fb12bdb7b66c741b79c223a8f..642a943155723e0981b222c16705c471e5015a04 100644
--- a/remoting/protocol/auth_util.h
+++ b/remoting/protocol/auth_util.h
@@ -31,18 +31,9 @@ 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);
+// Returns HMAC-SHA-256 hash for |shared_secret| with the specified |tag|.
+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.
« no previous file with comments | « remoting/host/pin_hash.cc ('k') | remoting/protocol/auth_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698