This CL adds usage tables to the OEMCrypto reference implementation (mock) and unit tests. There is also a new parameter called oem_crypto_require_usage_tables that determines if the usage tables are required or not. This is set to true for Android and false for all other platforms. This CL is most of OEMCrypto version 9 updates. This CL is a copy of https://widevine-internal-review.googlesource.com/#/c/9720 https://widevine-internal-review.googlesource.com/#/c/9874 https://widevine-internal-review.googlesource.com/#/c/9873 Change-Id: I78c4f7651306f9f79ba2260c3e04fb1eca7e20e3
43 lines
1.5 KiB
C++
43 lines
1.5 KiB
C++
// Copyright 2013 Google Inc. All Rights Reserved.
|
|
|
|
#ifndef CDM_BASE_PROPERTIES_CONFIGURATION_H_
|
|
#define CDM_BASE_PROPERTIES_CONFIGURATION_H_
|
|
|
|
#include "wv_cdm_constants.h"
|
|
#include "properties.h"
|
|
|
|
namespace wvcdm {
|
|
|
|
// If false begin license usage on first playback
|
|
const bool kPropertyBeginLicenseUsageWhenReceived = false;
|
|
|
|
// If false, calls to Generate Key request, after the first one,
|
|
// will result in a renewal request being generated
|
|
const bool kPropertyRequireExplicitRenewRequest = false;
|
|
|
|
// Set only one of the three below to true. If secure buffer
|
|
// is selected, fallback to userspace buffers may occur
|
|
// if L1/L2 OEMCrypto APIs fail
|
|
const bool kPropertyOemCryptoUseSecureBuffers = true;
|
|
const bool kPropertyOemCryptoUseFifo = false;
|
|
const bool kPropertyOemCryptoUseUserSpaceBuffers = false;
|
|
|
|
// If true, the unit tests require OEMCrypto to support usage tables.
|
|
const bool kPropertyOemCryptoRequireUsageTable = true;
|
|
|
|
// If false, keyboxes will be used as client identification
|
|
// and passed as the token in the license request
|
|
const bool kPropertyUseCertificatesAsIdentification = true;
|
|
|
|
// If true, session_id parameter to CdmEngine::Decrypt can be empty; the
|
|
// function will try to find out the session_id from the key_id.
|
|
const bool kDecryptWithEmptySessionSupport = false;
|
|
|
|
// If true, device files will be moved to the directory specified by
|
|
// Properties::GetDeviceFilesBasePath
|
|
const bool kSecurityLevelPathBackwardCompatibilitySupport = true;
|
|
|
|
} // namespace wvcdm
|
|
|
|
#endif // CDM_BASE_WV_PROPERTIES_CONFIGURATION_H_
|