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) {
|
||||
if (name == "serviceCertificate") {
|
||||
std::string cert(value.begin(), value.end());
|
||||
if (WvContentDecryptionModule::IsValidServiceCertificate(cert)) {
|
||||
if (value.isEmpty() ||
|
||||
WvContentDecryptionModule::IsValidServiceCertificate(cert)) {
|
||||
mPropertySet.set_service_certificate(cert);
|
||||
} else {
|
||||
return android::BAD_VALUE;
|
||||
|
||||
Reference in New Issue
Block a user