Handle key rotation
[ Merge of http://go/wvgerrit/77049 ] Entitlement PSSHs can now be provided in follow on key generation requests to cause keys to be rotated without needing a license exchange. Bug: 128462397 Test: WV unit/integration tests, Netflix and GPlay tests, GtsMediaDrmTests Change-Id: I6ed0901a35c498240f42e405a522d82ea8dce2f7
This commit is contained in:
@@ -439,8 +439,13 @@ CdmResponseType CdmSession::GenerateKeyRequestInternal(
|
||||
|
||||
if (is_release_) {
|
||||
return GenerateReleaseRequest(key_request);
|
||||
} else if (license_received_) { // renewal
|
||||
return GenerateRenewalRequest(key_request);
|
||||
} else if (license_received_) {
|
||||
// A call to GenerateKeyRequest after the initial license has been received
|
||||
// is either a renewal request or a key rotation event
|
||||
if (init_data.contains_entitled_keys())
|
||||
return license_parser_->HandleEmbeddedKeyData(init_data);
|
||||
else
|
||||
return GenerateRenewalRequest(key_request);
|
||||
} else {
|
||||
key_request->type = kKeyRequestTypeInitial;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user