Throw DeniedByServerException when provisioning detects a revoked device
[ Merge of http://go/wvgerrit/117267 ] The client will now advertise the ability to handle provisioning errors by a minor version updated to the provisioning protocol version. The provisioning service may indicate that the individual device is revoked or all devices with the same make/model have been revoked. If the provisoning service has not been upgraded, the protocol version field in the request will be ignored. The provisioning service/SDK will respond with an HTTP 400 error to a provisioning request from a revoked device. Bug: 174174765 Test: WvCdmRequestLicenseTest.ProvisioningRevocationTest, WV unit/integration tests Change-Id: I5ff61496685f310de6704a90452b8b76b3505cbb
This commit is contained in:
@@ -105,6 +105,8 @@ static android::status_t mapCdmResponseType(wvcdm::CdmResponseType res) {
|
||||
return kCertProvisioningResponseError8;
|
||||
case wvcdm::CERT_PROVISIONING_RESPONSE_ERROR_9:
|
||||
return kCertProvisioningResponseError9;
|
||||
case wvcdm::CERT_PROVISIONING_RESPONSE_ERROR_10:
|
||||
return kCertProvisioningResponseError10;
|
||||
case wvcdm::CLIENT_IDENTIFICATION_TOKEN_ERROR_1:
|
||||
return kClientIdentificationTokenError1;
|
||||
case wvcdm::CLIENT_ID_AES_ENCRYPT_ERROR:
|
||||
|
||||
Reference in New Issue
Block a user