OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef REMOTING_PROTOCOL_AUTH_UTIL_H_ | 5 #ifndef REMOTING_PROTOCOL_AUTH_UTIL_H_ |
6 #define REMOTING_PROTOCOL_AUTH_UTIL_H_ | 6 #define REMOTING_PROTOCOL_AUTH_UTIL_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include <string> | 10 #include <string> |
9 | 11 |
10 #include "base/strings/string_piece.h" | 12 #include "base/strings/string_piece.h" |
11 | 13 |
12 namespace net { | 14 namespace net { |
13 class SSLSocket; | 15 class SSLSocket; |
14 } // namespace net | 16 } // namespace net |
15 | 17 |
16 namespace remoting { | 18 namespace remoting { |
17 namespace protocol { | 19 namespace protocol { |
(...skipping 27 matching lines...) Expand all Loading... |
45 // Returns authentication bytes that must be used for the given | 47 // Returns authentication bytes that must be used for the given |
46 // |socket|. Empty string is returned in case of failure. | 48 // |socket|. Empty string is returned in case of failure. |
47 std::string GetAuthBytes(net::SSLSocket* socket, | 49 std::string GetAuthBytes(net::SSLSocket* socket, |
48 const base::StringPiece& label, | 50 const base::StringPiece& label, |
49 const base::StringPiece& shared_secret); | 51 const base::StringPiece& shared_secret); |
50 | 52 |
51 } // namespace protocol | 53 } // namespace protocol |
52 } // namespace remoting | 54 } // namespace remoting |
53 | 55 |
54 #endif // REMOTING_PROTOCOL_AUTH_UTIL_H_ | 56 #endif // REMOTING_PROTOCOL_AUTH_UTIL_H_ |
OLD | NEW |