Shaka Packager SDK
widevine_encryption_flags.h
1 // Copyright 2014 Google LLC. All rights reserved.
2 //
3 // Use of this source code is governed by a BSD-style
4 // license that can be found in the LICENSE file or at
5 // https://developers.google.com/open-source/licenses/bsd
6 //
7 // Defines command line flags for widevine_encryption.
8 
9 #ifndef APP_WIDEVINE_ENCRYPTION_FLAGS_H_
10 #define APP_WIDEVINE_ENCRYPTION_FLAGS_H_
11 
12 #include <absl/flags/declare.h>
13 #include <absl/flags/flag.h>
14 
15 #include <packager/utils/absl_flag_hexbytes.h>
16 
17 ABSL_DECLARE_FLAG(bool, enable_widevine_encryption);
18 ABSL_DECLARE_FLAG(bool, enable_widevine_decryption);
19 ABSL_DECLARE_FLAG(std::string, key_server_url);
20 ABSL_DECLARE_FLAG(shaka::HexBytes, content_id);
21 ABSL_DECLARE_FLAG(std::string, policy);
22 ABSL_DECLARE_FLAG(int32_t, max_sd_pixels);
23 ABSL_DECLARE_FLAG(int32_t, max_hd_pixels);
24 ABSL_DECLARE_FLAG(int32_t, max_uhd1_pixels);
25 ABSL_DECLARE_FLAG(std::string, signer);
26 ABSL_DECLARE_FLAG(shaka::HexBytes, aes_signing_key);
27 ABSL_DECLARE_FLAG(shaka::HexBytes, aes_signing_iv);
28 ABSL_DECLARE_FLAG(std::string, rsa_signing_key_path);
29 ABSL_DECLARE_FLAG(int32_t, crypto_period_duration);
30 ABSL_DECLARE_FLAG(shaka::HexBytes, group_id);
31 ABSL_DECLARE_FLAG(bool, enable_entitlement_license);
32 
33 namespace shaka {
34 
38 
39 } // namespace shaka
40 
41 #endif // APP_WIDEVINE_ENCRYPTION_FLAGS_H_
All the methods that are virtual are virtual for mocking.
Definition: crypto_flags.cc:66
bool ValidateWidevineCryptoFlags()