Regular sync.
Changes include: 1. Fix refreshkeys when handling renewal response. 2. Change ECM start detect method. 3. Fix signing key truncation. 4. Reformat C++ code. 5. Return license_id in LICENSE_CAS_READY payload. 6. Expose OEMCrypto API version in the license request. 7. Add support for newly added widevine cas ids. 8. Store content iv and encryption mode info to entitled key. 9. Upgrade ODK library to 16.4.
This commit is contained in:
@@ -14,8 +14,8 @@ using android::CasPlugin;
|
||||
using android::CasPluginCallback;
|
||||
using android::CasPluginCallbackExt;
|
||||
using android::CasPluginStatusCallback;
|
||||
using android::status_t;
|
||||
using android::CasSessionId;
|
||||
using android::status_t;
|
||||
using android::String8;
|
||||
|
||||
namespace wvcas {
|
||||
@@ -91,8 +91,7 @@ class WidevineCasPlugin : public CasPlugin, public CasEventListener {
|
||||
private:
|
||||
virtual std::shared_ptr<CryptoSession> getCryptoSession();
|
||||
// |sessionId| is nullptr if the event is not a session event.
|
||||
virtual CasStatus processEvent(int32_t event,
|
||||
int32_t arg,
|
||||
virtual CasStatus processEvent(int32_t event, int32_t arg,
|
||||
const CasData& eventData,
|
||||
const CasSessionId* sessionId);
|
||||
virtual CasStatus HandleIndividualizationResponse(const CasData& response);
|
||||
@@ -116,12 +115,8 @@ class WidevineCasPlugin : public CasPlugin, public CasEventListener {
|
||||
|
||||
// Choose to use |callback_| or |callback_ext_| to send back information.
|
||||
// |sessionId| is ignored if |callback_ext_| is null,
|
||||
void CallBack(void* appData,
|
||||
int32_t event,
|
||||
int32_t arg,
|
||||
uint8_t* data,
|
||||
size_t size,
|
||||
const CasSessionId* sessionId) const;
|
||||
void CallBack(void* appData, int32_t event, int32_t arg, uint8_t* data,
|
||||
size_t size, const CasSessionId* sessionId) const;
|
||||
|
||||
void* app_data_;
|
||||
CasPluginCallback callback_;
|
||||
|
||||
Reference in New Issue
Block a user