Address CDM compilation warnings for android
[ Merge of http://go/wvgerrit/169230 ] Bug: 275675184 Test: Compile and GtsMediaTestCases Change-Id: I3dc01f383a1fae07c126782e8d3561ab724316a8
This commit is contained in:
@@ -1074,18 +1074,20 @@ CdmResponseType CryptoSession::PrepareAndSignLicenseRequest(
|
||||
"PrepareAndSignLicenseRequest");
|
||||
}
|
||||
|
||||
CdmResponseType CryptoSession::UseSecondaryKey(bool dual_key) {
|
||||
#ifdef HAS_DUAL_KEY
|
||||
CdmResponseType CryptoSession::UseSecondaryKey(bool dual_key) {
|
||||
OEMCryptoResult sts;
|
||||
WithOecSessionLock("UseSecondaryKey", [&] {
|
||||
sts = OEMCrypto_UseSecondaryKey(oec_session_id_, dual_key);
|
||||
});
|
||||
|
||||
return MapOEMCryptoResult(sts, LOAD_KEY_ERROR, "UseSecondaryKey");
|
||||
#else
|
||||
return CdmResponseType(NO_ERROR);
|
||||
#endif
|
||||
}
|
||||
#else
|
||||
CdmResponseType CryptoSession::UseSecondaryKey(bool /* dual_key */) {
|
||||
return CdmResponseType(NO_ERROR);
|
||||
}
|
||||
#endif
|
||||
|
||||
CdmResponseType CryptoSession::LoadLicense(const std::string& signed_message,
|
||||
const std::string& core_message,
|
||||
|
||||
Reference in New Issue
Block a user