Add certificate information to offline licenses

[ Merge of http://go/wvgerrit/120508 ]

Offline licenses will now store the DRM certificate information. This
allows for expired certificates to be deleted and replaced without
losing the ability to use offline licenses.

Bug: 169740403
Test: WV unit/integration tests
      DeviceFilesTest.RetrieveLicenses
      DeviceFilesTest.StoreLicenses
Change-Id: Ic0de6328d32e0000d1b58c81019e6c2227278cc4
This commit is contained in:
Rahul Frias
2021-03-19 23:26:54 -07:00
parent f6b4d140f4
commit 57ebb70fe7
5 changed files with 391 additions and 38 deletions

View File

@@ -95,6 +95,8 @@ class DeviceFiles {
// Usage entry and index.
CdmUsageEntry usage_entry;
uint32_t usage_entry_number;
std::string drm_certificate;
CryptoWrappedKey wrapped_private_key;
};
struct CdmUsageData {