Merges to android Pi release (part 2)
These are a set of CLs merged from the wv cdm repo to the android repo. * Update service certificate. Author: Gene Morgan <gmorgan@google.com> [ Merge of http://go/wvgerrit/28065 ] The updated service certificate fixes a number of failing tests. There are still some that fail, apparently due to mismatches with key set IDs and usage tables. Also updated QA server URL to point to QA proxy (although neither can be used by this client). Also fixed segfault in CdmTest.ListUsageRecords. * Add CDM APIs for Handling Service Certificates. Author: Gene Morgan <gmorgan@google.com> [ Merge of http://go/wvgerrit/28064 ] The responsibility for managing Service Certificates has been moved out of the CDM. Instead, provide CDM and CdmEngine methods to generate a service certificate request message, and handle a service certificate response. The API client can use these calls if it needs to get the service certificate from the License Server. These functions assume the request and response are base64 (web-safe) encoded (see b/37481392). Not all servers are operating this way yet. Any adaptations for non-compliant servers is handled outside the CDM. See test WvCdmEnginePreProvTest::ServiceCertificateRequestResponse in cdm_engine_test.cpp for an example of this. These changes also eliminate the stored init_data and deferred license type which were used to perform a service certificate request during a license request. * Fix and rename ClosesSessionWithoutReturningError test. Author: Edwin Wong <edwinwong@google.com> [ Merge of http://go/wvgerrit/27880 ] ClosesSessionWithoutReturningError should not check for Status::OK since it is expecting an error code back. The test is renamed to ClosesSessionWithError. Test: libwvdrmdrmplugin_hidl_test BUG: 62205215 * Get rid of default service certificate. Author: Gene Morgan <gmorgan@google.com> [ Merge of http://go/wvgerrit/27981 ] Instead, we need at least two service certs - one for the QA/Test servers, and one for UAT (and prod?) There are still some issues around the signature verififcation of the service cert, and in license_unittest.cpp, the use of the default service cert has been commented out. I don't know why this test needs a service cert. If it really does, then the same mechanism that is used elsewhere for selecting a specific server type will be needed here. BUG: 71650075 Test: Not currently passing. Will be addressed in a subsequent commit in the chain. Change-Id: Ieab815fb202c809ad5714cd0364c4bdfa068f77d
This commit is contained in:
@@ -180,9 +180,7 @@ static Status mapCdmResponseType(wvcdm::CdmResponseType res) {
|
||||
case wvcdm::UNPROVISION_ERROR_4:
|
||||
case wvcdm::UNSUPPORTED_INIT_DATA:
|
||||
case wvcdm::USAGE_INFO_NOT_FOUND:
|
||||
case wvcdm::LICENSE_RENEWAL_SERVICE_CERTIFICATE_GENERATION_ERROR:
|
||||
case wvcdm::PARSE_SERVICE_CERTIFICATE_ERROR:
|
||||
case wvcdm::SERVICE_CERTIFICATE_TYPE_ERROR:
|
||||
case wvcdm::CLIENT_ID_GENERATE_RANDOM_ERROR:
|
||||
case wvcdm::CLIENT_ID_AES_INIT_ERROR:
|
||||
case wvcdm::CLIENT_ID_AES_ENCRYPT_ERROR:
|
||||
@@ -194,7 +192,6 @@ static Status mapCdmResponseType(wvcdm::CdmResponseType res) {
|
||||
case wvcdm::INVALID_PARAMETERS_LIC_4:
|
||||
case wvcdm::INVALID_PARAMETERS_LIC_6:
|
||||
case wvcdm::INVALID_PARAMETERS_LIC_7:
|
||||
case wvcdm::LICENSE_REQUEST_SERVICE_CERTIFICATE_GENERATION_ERROR:
|
||||
case wvcdm::CENC_INIT_DATA_UNAVAILABLE:
|
||||
case wvcdm::PREPARE_CENC_CONTENT_ID_FAILED:
|
||||
case wvcdm::WEBM_INIT_DATA_UNAVAILABLE:
|
||||
@@ -293,6 +290,15 @@ static Status mapCdmResponseType(wvcdm::CdmResponseType res) {
|
||||
case wvcdm::LIST_LICENSE_ERROR_1:
|
||||
case wvcdm::LIST_LICENSE_ERROR_2:
|
||||
case wvcdm::RELEASE_ALL_USAGE_INFO_ERROR_3:
|
||||
case wvcdm::PRIVACY_MODE_ERROR_1:
|
||||
case wvcdm::PRIVACY_MODE_ERROR_2:
|
||||
case wvcdm::PRIVACY_MODE_ERROR_3:
|
||||
case wvcdm::EMPTY_RESPONSE_ERROR_1:
|
||||
case wvcdm::INVALID_PARAMETERS_ENG_24:
|
||||
case wvcdm::PARSE_RESPONSE_ERROR_1:
|
||||
case wvcdm::PARSE_RESPONSE_ERROR_2:
|
||||
case wvcdm::PARSE_RESPONSE_ERROR_3:
|
||||
case wvcdm::PARSE_RESPONSE_ERROR_4:
|
||||
ALOGW("Returns UNKNOWN error for legacy status: %d", res);
|
||||
return Status::ERROR_DRM_UNKNOWN;
|
||||
|
||||
@@ -304,6 +310,9 @@ static Status mapCdmResponseType(wvcdm::CdmResponseType res) {
|
||||
case wvcdm::UNUSED_5:
|
||||
case wvcdm::UNUSED_6:
|
||||
case wvcdm::UNUSED_7:
|
||||
case wvcdm::UNUSED_8:
|
||||
case wvcdm::UNUSED_9:
|
||||
case wvcdm::UNUSED_10:
|
||||
return Status::ERROR_DRM_UNKNOWN;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user