Cas Client repo update-2.
-Parse EMM in Cas plugin -Entitlement key rotation support -Multi_content_license support
This commit is contained in:
@@ -36,6 +36,9 @@ class Properties {
|
||||
// Returned path could be either absolute or relative.
|
||||
// Returns false if unable to set the value.
|
||||
static bool GetOEMCryptoPath(std::string* path);
|
||||
// Sets |version| to Widevine CAS plugin version. Returns false if unable to
|
||||
// set the value.
|
||||
static bool GetWvCasPluginVersion(std::string& version);
|
||||
};
|
||||
|
||||
} // namespace wvcas
|
||||
|
||||
@@ -2,13 +2,16 @@
|
||||
// source code may only be used and distributed under the Widevine Master
|
||||
// License Agreement.
|
||||
|
||||
#include <cutils/properties.h>
|
||||
|
||||
#include "cas_properties.h"
|
||||
#include "log.h"
|
||||
|
||||
#include <cutils/properties.h>
|
||||
|
||||
namespace {
|
||||
|
||||
// Version format: OEMCrypto_major.OEMCrypto_minor.Plugin_version
|
||||
constexpr char kWvCasPluginVersion[] = "16.4.1";
|
||||
|
||||
bool GetAndroidProperty(const char* key, std::string* value) {
|
||||
char val[PROPERTY_VALUE_MAX];
|
||||
if (!key) {
|
||||
@@ -77,4 +80,9 @@ bool Properties::GetOEMCryptoPath(std::string* path) {
|
||||
return true;
|
||||
}
|
||||
|
||||
bool Properties::GetWvCasPluginVersion(std::string& version) {
|
||||
version = kWvCasPluginVersion;
|
||||
return true;
|
||||
}
|
||||
|
||||
} // namespace wvcas
|
||||
|
||||
Reference in New Issue
Block a user