Log OEMCrypto_CloseSession error
[ Merge of http://go/wvgerrit/103643 ] Bug: 161417560 Test: WV unit/integration test Change-Id: I2d7e3b90e2e34e7854dea7aac865f8577d113aab
This commit is contained in:
@@ -852,7 +852,22 @@ void CryptoSession::Close() {
|
||||
WithOecWriteLock(
|
||||
"Close", [&] { close_sts = OEMCrypto_CloseSession(oec_session_id_); });
|
||||
metrics_->oemcrypto_close_session_.Increment(close_sts);
|
||||
if (OEMCrypto_SUCCESS == close_sts) open_ = false;
|
||||
|
||||
if (close_sts != OEMCrypto_SUCCESS) {
|
||||
LOGW("OEMCrypto_CloseSession failed: status = %d",
|
||||
static_cast<int>(close_sts));
|
||||
}
|
||||
switch (close_sts) {
|
||||
case OEMCrypto_SUCCESS:
|
||||
case OEMCrypto_ERROR_INVALID_SESSION:
|
||||
case OEMCrypto_ERROR_SYSTEM_INVALIDATED:
|
||||
open_ = false;
|
||||
break;
|
||||
case OEMCrypto_ERROR_CLOSE_SESSION_FAILED:
|
||||
default:
|
||||
// empty case
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
CdmResponseType CryptoSession::PrepareAndSignLicenseRequest(
|
||||
|
||||
Reference in New Issue
Block a user