Files
android/libwvdrmengine/cdm/include/properties_configuration.h
Rahul Frias 57f2a7fe31 Address request license test failures
[ Merge of http://go/wvgerrit/81743 and http://go/ag/7747989 ]

This fixes some failures in tests. A platform property has been added
which controls whether an offline license can be restored if a release
request has been previously made. This behaviour was introduced by
CE CDM in b/113167010 but is not permitted for android.

The tests failures addressed are
* ProvisioningTestWithServiceCertificate
* ReleaseRetryOfflineKeyTest
* ReleaseRetryL3OfflineKeyTest
* ReleaseRetryL3OfflineKeySessionUsageDisable

Bug: 119428680
Bug: 133684744
Test: WV unit/integration tests
Change-Id: I5beacecea32f26c8a319a6d73a45cc36f04d8aa1
2019-06-28 14:10:01 -07:00

45 lines
1.8 KiB
C++

// Copyright 2018 Google LLC. All Rights Reserved. This file and proprietary
// source code may only be used and distributed under the Widevine Master
// License Agreement.
#ifndef CDM_BASE_PROPERTIES_CONFIGURATION_H_
#define CDM_BASE_PROPERTIES_CONFIGURATION_H_
#include "wv_cdm_constants.h"
#include "properties.h"
namespace wvcdm {
// 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, provisioning messages will be binary strings (serialized protobuf
// messages). Otherwise they are base64 (web-safe) encoded, and the response
// string accepted by the CDM includes the JSON wrapper.
const bool kPropertyProvisioningMessagesAreBinary = false;
// Controls behavior when privacy mode is enabled. If true
// and a service certificate is not provided, a service certificate
// request will be generated when requested to generate a license request.
// A service certificate response will also be processed. If false,
// an error will be generated.
const bool kAllowServiceCertificateRequests = true;
// Indicates whether this platform's FileSystem abstraction maps directly to the
// device filesystem or whether there is a layer of indirection. If set to true,
// code may treat the DeviceFiles base path as a raw filesystem path.
const bool kDeviceFilesIsARealFileSystem = true;
// This controls the restoration of an offline license, on which a
// release attempt was previously made. If true, a restoration
// will be treated as a release request. If false, a restoration will fail.
const bool kAllowRestoreOfflineLicenseWithRelease = false;
} // namespace wvcdm
#endif // CDM_BASE_WV_PROPERTIES_CONFIGURATION_H_