Merge "Fix the length of the extracted BCC"
This commit is contained in:
@@ -114,6 +114,7 @@ OEMCryptoResult OEMCryptoInterface::GetBcc(std::vector<uint8_t>& bcc) {
|
|||||||
result = GetBootCertificateChain(bcc.data(), &bcc_size,
|
result = GetBootCertificateChain(bcc.data(), &bcc_size,
|
||||||
additional_signature.data(),
|
additional_signature.data(),
|
||||||
&additional_signature_size);
|
&additional_signature_size);
|
||||||
|
if (result == OEMCrypto_SUCCESS) bcc.resize(bcc_size);
|
||||||
LOGI("GetBootCertificateChain second attempt result %d", result);
|
LOGI("GetBootCertificateChain second attempt result %d", result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user