am 968993cd: Allow Clearing of Privacy Cert
* commit '968993cd05b3c4da324a912a6ca3315bac9fc2b9': Allow Clearing of Privacy Cert
This commit is contained in:
@@ -585,7 +585,8 @@ status_t WVDrmPlugin::setPropertyByteArray(const String8& name,
|
|||||||
const Vector<uint8_t>& value) {
|
const Vector<uint8_t>& value) {
|
||||||
if (name == "serviceCertificate") {
|
if (name == "serviceCertificate") {
|
||||||
std::string cert(value.begin(), value.end());
|
std::string cert(value.begin(), value.end());
|
||||||
if (WvContentDecryptionModule::IsValidServiceCertificate(cert)) {
|
if (value.isEmpty() ||
|
||||||
|
WvContentDecryptionModule::IsValidServiceCertificate(cert)) {
|
||||||
mPropertySet.set_service_certificate(cert);
|
mPropertySet.set_service_certificate(cert);
|
||||||
} else {
|
} else {
|
||||||
return android::BAD_VALUE;
|
return android::BAD_VALUE;
|
||||||
|
|||||||
Reference in New Issue
Block a user