GetDecryptHashSupport: recognize OEMCrypto_ERROR_NOT_IMPLEMENTED
[ Merge of http://go/wvgerrit/102383 ] Bug: 153297118 Bug: 160182693 Test: MediaDrmTest#testDecryptHashError Change-Id: I107668cdd1ab0acda717f184496e569a4f9a8653
This commit is contained in:
@@ -2019,6 +2019,9 @@ bool CryptoSession::GetDecryptHashSupport(SecurityLevel security_level,
|
||||
case OEMCrypto_CRC_Clear_Buffer:
|
||||
case OEMCrypto_Partner_Defined_Hash:
|
||||
break;
|
||||
case OEMCrypto_ERROR_NOT_IMPLEMENTED:
|
||||
*decrypt_hash_support = OEMCrypto_Hash_Not_Supported;
|
||||
break;
|
||||
default:
|
||||
// Not flagging an error since it is only used in test
|
||||
LOGW("OEMCrypto_SupportsDecryptHash unrecognized result = %d",
|
||||
|
||||
Reference in New Issue
Block a user