| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef REMOTING_PROTOCOL_AUTH_TOKEN_UTILS_H_ | |
| 6 #define REMOTING_PROTOCOL_AUTH_TOKEN_UTILS_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 namespace remoting { | |
| 11 namespace protocol { | |
| 12 | |
| 13 // Generates auth token for the specified |jid| and |access_code|. | |
| 14 std::string GenerateSupportAuthToken(const std::string& jid, | |
| 15 const std::string& access_code); | |
| 16 | |
| 17 // Verifies validity of an |access_token|. | |
| 18 bool VerifySupportAuthToken(const std::string& jid, | |
| 19 const std::string& access_code, | |
| 20 const std::string& auth_token); | |
| 21 | |
| 22 } // namespace protocol | |
| 23 } // namespace remoting | |
| 24 | |
| 25 #endif // REMOTING_PROTOCOL_AUTH_TOKEN_UTILS_H_ | |
| OLD | NEW |