| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_AUTH_UTIL_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_AUTH_UTIL_H_ |
| 6 #define EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_AUTH_UTIL_H_ | 6 #define EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_AUTH_UTIL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 namespace extensions { | 10 namespace extensions { |
| 11 namespace core_api { | 11 namespace api { |
| 12 namespace cast_channel { | 12 namespace cast_channel { |
| 13 | 13 |
| 14 class AuthResponse; | 14 class AuthResponse; |
| 15 class CastMessage; | 15 class CastMessage; |
| 16 class DeviceAuthMessage; | 16 class DeviceAuthMessage; |
| 17 | 17 |
| 18 struct AuthResult { | 18 struct AuthResult { |
| 19 public: | 19 public: |
| 20 enum ErrorType { | 20 enum ErrorType { |
| 21 ERROR_NONE, | 21 ERROR_NONE, |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 AuthResult AuthenticateChallengeReply(const CastMessage& challenge_reply, | 64 AuthResult AuthenticateChallengeReply(const CastMessage& challenge_reply, |
| 65 const std::string& peer_cert); | 65 const std::string& peer_cert); |
| 66 | 66 |
| 67 // Auth-library specific implementation of cryptographic signature | 67 // Auth-library specific implementation of cryptographic signature |
| 68 // verification routines. Verifies that |response| contains a | 68 // verification routines. Verifies that |response| contains a |
| 69 // valid signed form of |peer_cert|. | 69 // valid signed form of |peer_cert|. |
| 70 AuthResult VerifyCredentials(const AuthResponse& response, | 70 AuthResult VerifyCredentials(const AuthResponse& response, |
| 71 const std::string& peer_cert); | 71 const std::string& peer_cert); |
| 72 | 72 |
| 73 } // namespace cast_channel | 73 } // namespace cast_channel |
| 74 } // namespace core_api | 74 } // namespace api |
| 75 } // namespace extensions | 75 } // namespace extensions |
| 76 | 76 |
| 77 #endif // EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_AUTH_UTIL_H_ | 77 #endif // EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_AUTH_UTIL_H_ |
| OLD | NEW |