1 // Copyright 2013 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.
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_CAST_CHANNEL_CAST_AUTH_UTIL_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_CAST_CHANNEL_CAST_AUTH_UTIL_H_
10 namespace extensions {
12 namespace cast_channel {
16 // Authenticates the given |challenge_reply|:
17 // 1. Signature contained in the reply is valid.
18 // 2. Certficate used to sign is rooted to a trusted CA.
19 bool AuthenticateChallengeReply(const CastMessage& challenge_reply,
20 const std::string& peer_cert);
22 } // namespace cast_channel
24 } // namespace extensions
26 #endif // CHROME_BROWSER_EXTENSIONS_API_CAST_CHANNEL_CAST_AUTH_UTIL_H_