Log Bad Keybox Token
Merge from widevine repo of http://go/wvgerrit/22664 This logs an error message when oemcrypto returns an error for GetKeyData, and it updates the level3 to return a different error code depending on which error was returned. We have seen some provisioning errors in the field caused by GetToken failing, but with no more information. This should close that barn door a little tighter. Change-Id: Ie70980bbc3ac1353b76b668f12addf76c5e53cb8
This commit is contained in:
@@ -120,6 +120,7 @@ bool CryptoSession::GetTokenFromKeybox(std::string* token) {
|
||||
token->swap(temp_buffer);
|
||||
return true;
|
||||
}
|
||||
LOGE("CryptoSession::GetTokenFromKeybox : error %d.", status);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -141,6 +142,7 @@ bool CryptoSession::GetTokenFromOemCert(std::string* token) {
|
||||
retrying = true;
|
||||
continue;
|
||||
}
|
||||
LOGE("CryptoSession::GetTokenFromOemCert : error %d.", status);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user