Fix oec session id in dynamic adpater
[ Merge of http://go/wvgerrit/175310 ] 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: I127ff37abf8b618dfbcb623f59bc999e58e7a028
This commit is contained in:
@@ -2188,7 +2188,8 @@ extern "C" OEMCryptoResult OEMCrypto_LoadEntitledContentKeys(
|
||||
key_array_v16[i].content_key_data = key_array[i].content_key_data;
|
||||
}
|
||||
return pair.fcn->LoadEntitledContentKeys_V16(
|
||||
session, message, message_length, key_array_length, &key_array_v16[0]);
|
||||
pair.session, message, message_length, key_array_length,
|
||||
&key_array_v16[0]);
|
||||
}
|
||||
if (pair.fcn->LoadEntitledContentKeys == nullptr) {
|
||||
return OEMCrypto_ERROR_NOT_IMPLEMENTED;
|
||||
|
||||
Reference in New Issue
Block a user