Create new token types for DRM reprovisioning

Creates new token types for the DRM reprovisioning scheme that will be
used by L3 CDMs with baked-in certificates to allow for use of unique
serial numbers.

- Create new `CdmClientTokenType` for DRM reprovisioning in the CDM
  core.
- Create a new `ProvisioningType` for DRM reprovisioning in the
  provisioning message proto.
- Create new enum value for `DEVICE_EMBEDDED` in DrmCertificate type.
- Update uses of the above to include the new token types.

Bug: b/305093063
Merged from https://widevine-internal-review.googlesource.com/186934

Change-Id: I7e6cc8744b80cbbb624d31e5be1eab1be8a9680f
This commit is contained in:
Geoffrey Alexander
2023-10-23 18:56:19 +00:00
committed by Robert Shih
parent 2fabef5bc9
commit 442ee78db1
7 changed files with 15 additions and 0 deletions

View File

@@ -384,6 +384,8 @@ bool ClientIdentification::GetProvisioningTokenType(
video_widevine::ClientIdentification::BOOT_CERTIFICATE_CHAIN;
return true;
case kClientTokenDrmCert:
// TODO: b/305093063 - Add token for DRM reprovisioning requests.
case kClientTokenDrmReprovisioning:
default:
// shouldn't happen
LOGE("Unexpected provisioning type: %d", static_cast<int>(token));