Correct GetDecryptHashSupport signature
[ Merge of http://go/wvgerrit/89906 ] The change allows the GetDecryptHashSupport method to return an error. Bug: 144851430 Test: WV android unit/integration tests Change-Id: Ib3b95788adb21b5ed0daee51ad338f9674b04c3c
This commit is contained in:
@@ -665,8 +665,12 @@ CdmResponseType CdmEngine::QueryStatus(SecurityLevel security_level,
|
||||
}
|
||||
return NO_ERROR;
|
||||
} else if (query_token == QUERY_KEY_DECRYPT_HASH_SUPPORT) {
|
||||
*query_response =
|
||||
std::to_string(crypto_session->IsDecryptHashSupported(security_level));
|
||||
uint32_t hash_support = 0;
|
||||
if (!crypto_session->GetDecryptHashSupport(security_level, &hash_support)) {
|
||||
LOGW("GetDecryptHashSupport failed");
|
||||
return UNKNOWN_ERROR;
|
||||
}
|
||||
*query_response = std::to_string(hash_support);
|
||||
return NO_ERROR;
|
||||
} else if (query_token == QUERY_KEY_PROVISIONING_MODEL) {
|
||||
CdmClientTokenType token_type = kClientTokenUninitialized;
|
||||
|
||||
Reference in New Issue
Block a user