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

Side by Side Diff: remoting/protocol/auth_util.h

Issue 8604001: Move SSL layer initialization into ChannelAuthenticator implementations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Simple->V1 Created 9 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/protocol/auth_token_utils.cc ('k') | remoting/protocol/auth_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_UTIL_H_
6 #define REMOTING_PROTOCOL_AUTH_UTIL_H_
7
8 #include <string>
9
10 namespace remoting {
11 namespace protocol {
12
13 // Labels for use when exporting the SSL master keys.
14 extern const char kClientAuthSslExporterLabel[];
15
16 // Fake hostname used for SSL connections.
17 extern const char kSslFakeHostName[];
18
19 // Size of the HMAC-SHA-256 authentication digest.
20 const size_t kAuthDigestLength = 32;
21
22 // Generates auth token for the specified |jid| and |access_code|.
23 std::string GenerateSupportAuthToken(const std::string& jid,
24 const std::string& access_code);
25
26 // Verifies validity of an |access_token|.
27 bool VerifySupportAuthToken(const std::string& jid,
28 const std::string& access_code,
29 const std::string& auth_token);
30
31 // Returns hash used for channel authentication.
32 bool GetAuthBytes(const std::string& shared_secret,
33 const std::string& key_material,
34 std::string* auth_bytes);
35
36 } // namespace protocol
37 } // namespace remoting
38
39 #endif // REMOTING_PROTOCOL_AUTH_UTIL_H_
OLDNEW
« no previous file with comments | « remoting/protocol/auth_token_utils.cc ('k') | remoting/protocol/auth_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698