Fix oec session id in dynamic adpater
[ Merge of http://go/wvgerrit/175058 ] Pass the real oemcrypto session id from `pair.session` instead of `session` for LoadEntitledContentKeys, since `session` can be changed when L1 and L3 are running in parallel and `session` in that case may not be the correct oemcrypto session id any more. Bug: 279967915, 282180589 Test: wvts Change-Id: Iad0ac5e505d3b38d220f1484d4cf5f8bc3b5337f
This commit is contained in:
@@ -2177,7 +2177,7 @@ extern "C" OEMCryptoResult OEMCrypto_LoadEntitledContentKeys(
|
|||||||
if (pair.fcn->version < 17) {
|
if (pair.fcn->version < 17) {
|
||||||
if (key_array == nullptr) {
|
if (key_array == nullptr) {
|
||||||
return pair.fcn->LoadEntitledContentKeys_V16(
|
return pair.fcn->LoadEntitledContentKeys_V16(
|
||||||
session, message, message_length, key_array_length, nullptr);
|
pair.session, message, message_length, key_array_length, nullptr);
|
||||||
}
|
}
|
||||||
std::vector<OEMCrypto_EntitledContentKeyObject_V16> key_array_v16(
|
std::vector<OEMCrypto_EntitledContentKeyObject_V16> key_array_v16(
|
||||||
key_array_length);
|
key_array_length);
|
||||||
|
|||||||
Reference in New Issue
Block a user