Use "individualization-request" to provision devices.

[ Merge of http://go/wvgerrit/18290 ]

Now uses the "individualization-request" message type to provision
the device, instead of using global provisioning.  This also allows
per-origin provisioning and storage in CE.

b/27170580

Test: All unittests other than some oemcrypto, request_license_test
passed. Those tests failed with or without this CL.

Change-Id: I6fc39d7ccc3952e7269426d6d95767f53b787d54
This commit is contained in:
Rahul Frias
2017-01-12 21:55:35 -08:00
parent 8e3206c1be
commit 763238b597

View File

@@ -127,6 +127,9 @@ CdmResponseType CdmEngine::OpenSession(const CdmKeySystem& key_system,
if (sts == NEED_PROVISIONING) {
cert_provisioning_requested_security_level_ =
new_session->GetRequestedSecurityLevel();
// Reserve a session ID so the CDM can return success.
if (session_id)
*session_id = new_session->GenerateSessionId();
} else {
LOGE("CdmEngine::OpenSession: bad session init: %d", sts);
}