Prevent renewal license when can_renew is set to false
[ Merge of https://go/wvgerrit/15670 ] b/18459002 Change-Id: Idad43a621750ff01aee61e8d972957f364a698cf
This commit is contained in:
@@ -176,7 +176,8 @@ enum {
|
||||
kLicenseRequestNonceGenerationError = ERROR_DRM_VENDOR_MIN + 161,
|
||||
kLicenseRequestSigningError = ERROR_DRM_VENDOR_MIN + 162,
|
||||
kEmptyLicenseRequest = ERROR_DRM_VENDOR_MIN + 163,
|
||||
kErrorWVDrmMaxErrorUsed = ERROR_DRM_VENDOR_MIN + 163,
|
||||
kLicenseRenewalProhibited = ERROR_DRM_VENDOR_MIN + 165,
|
||||
kErrorWVDrmMaxErrorUsed = ERROR_DRM_VENDOR_MIN + 165,
|
||||
|
||||
// Used by crypto test mode
|
||||
kErrorTestMode = ERROR_DRM_VENDOR_MAX,
|
||||
|
||||
@@ -341,6 +341,8 @@ static android::status_t mapCdmResponseType(wvcdm::CdmResponseType res) {
|
||||
return kLicenseRequestSigningError;
|
||||
case wvcdm::EMPTY_LICENSE_REQUEST:
|
||||
return kEmptyLicenseRequest;
|
||||
case wvcdm::LICENSE_RENEWAL_PROHIBITED:
|
||||
return kLicenseRenewalProhibited;
|
||||
case wvcdm::UNKNOWN_ERROR:
|
||||
return android::ERROR_DRM_UNKNOWN;
|
||||
case wvcdm::UNUSED_1:
|
||||
|
||||
Reference in New Issue
Block a user