Source release 14.2.0
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
#include "log.h"
|
||||
#include "metrics_collections.h"
|
||||
#include "properties.h"
|
||||
#include "scoped_ptr.h"
|
||||
#include "service_certificate.h"
|
||||
#include "string_conversions.h"
|
||||
#include "wv_cdm_constants.h"
|
||||
@@ -1123,7 +1124,8 @@ Cdm::Status CdmImpl::decrypt(const InputBuffer& input,
|
||||
return kSuccess;
|
||||
}
|
||||
|
||||
if (result == NEED_KEY || result == SESSION_NOT_FOUND_FOR_DECRYPT) {
|
||||
if (result == NEED_KEY || result == KEY_NOT_FOUND_3 ||
|
||||
result == SESSION_NOT_FOUND_FOR_DECRYPT) {
|
||||
LOGE("Key not available.");
|
||||
return kNoKey;
|
||||
}
|
||||
@@ -1409,8 +1411,9 @@ Cdm::Status CdmImpl::ConvertHdcpLevel(const std::string& query_value,
|
||||
|
||||
bool VerifyL1() {
|
||||
metrics::CryptoMetrics throwaway_metrics;
|
||||
CryptoSession cs(&throwaway_metrics);
|
||||
return cs.GetSecurityLevel() == kSecurityLevelL1;
|
||||
scoped_ptr<CryptoSession> cs(
|
||||
CryptoSession::MakeCryptoSession(&throwaway_metrics));
|
||||
return cs->GetSecurityLevel() == kSecurityLevelL1;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user