Document OEMCrypto_LoadProvisioningCast
Bug: 314222872 Change-Id: I05031d1eacefceb73931b979ef69e69fdba871a7
This commit is contained in:
committed by
Robert Shih
parent
ce2af4e96a
commit
34ac11b187
@@ -723,14 +723,26 @@ CdmResponseType CertificateProvisioning::HandleProvisioningResponse(
|
||||
}
|
||||
|
||||
CryptoWrappedKey private_key;
|
||||
const CdmResponseType status = crypto_session_->LoadProvisioning(
|
||||
request_, signed_message, core_message, signature, &private_key.key());
|
||||
// TODO(b/316053127): clean this up a bit.
|
||||
if (cert_type_ == kCertificateX509) {
|
||||
const std::string dummy_key;
|
||||
const CdmResponseType status = crypto_session_->LoadProvisioningCast(
|
||||
dummy_key, request_, signed_message, core_message, signature,
|
||||
&private_key.key());
|
||||
|
||||
if (status != NO_ERROR) {
|
||||
LOGE("LoadProvisioning failed: status = %d", static_cast<int>(status));
|
||||
return status;
|
||||
if (status != NO_ERROR) {
|
||||
LOGE("LoadProvisioning failed: status = %d", static_cast<int>(status));
|
||||
return status;
|
||||
}
|
||||
} else {
|
||||
const CdmResponseType status = crypto_session_->LoadProvisioning(
|
||||
request_, signed_message, core_message, signature, &private_key.key());
|
||||
|
||||
if (status != NO_ERROR) {
|
||||
LOGE("LoadProvisioning failed: status = %d", static_cast<int>(status));
|
||||
return status;
|
||||
}
|
||||
}
|
||||
|
||||
const CdmSecurityLevel security_level = crypto_session_->GetSecurityLevel();
|
||||
CloseSession();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user