Source release 19.5.0
This commit is contained in:
@@ -73,7 +73,6 @@ bool OEMCryptoInterface::Init(const std::string& oemcrypto_path) {
|
||||
LOGE("Can't open OEMCrypto library: %s", dlerror());
|
||||
return false;
|
||||
}
|
||||
LOGI("OEMCrypto library opened.");
|
||||
|
||||
LOAD_SYM(Initialize);
|
||||
LOAD_SYM(Terminate);
|
||||
@@ -101,7 +100,6 @@ OEMCryptoResult OEMCryptoInterface::GetBcc(std::vector<uint8_t>& bcc) {
|
||||
OEMCryptoResult result = GetBootCertificateChain(bcc.data(), &bcc_size,
|
||||
additional_signature.data(),
|
||||
&additional_signature_size);
|
||||
LOGI("GetBootCertificateChain first attempt result %d", result);
|
||||
if (additional_signature_size != 0) {
|
||||
LOGW(
|
||||
"The additional_signature_size required by OEMCrypto is %zu, while it "
|
||||
@@ -115,7 +113,6 @@ OEMCryptoResult OEMCryptoInterface::GetBcc(std::vector<uint8_t>& bcc) {
|
||||
result = GetBootCertificateChain(bcc.data(), &bcc_size,
|
||||
additional_signature.data(),
|
||||
&additional_signature_size);
|
||||
LOGI("GetBootCertificateChain second attempt result %d", result);
|
||||
}
|
||||
|
||||
if (result == OEMCrypto_SUCCESS) {
|
||||
@@ -134,11 +131,9 @@ OEMCryptoResult OEMCryptoInterface::GetOEMCryptoBuildInfo(
|
||||
size_t build_info_size = 0;
|
||||
|
||||
OEMCryptoResult result = BuildInformation(&build_info[0], &build_info_size);
|
||||
LOGI("BuildInformation first attempt result %d", result);
|
||||
if (result == OEMCrypto_ERROR_SHORT_BUFFER) {
|
||||
build_info.resize(build_info_size);
|
||||
result = BuildInformation(&build_info[0], &build_info_size);
|
||||
LOGI("BuildInformation second attempt result %d", result);
|
||||
}
|
||||
if (result == OEMCrypto_SUCCESS) {
|
||||
build_info.resize(build_info_size);
|
||||
|
||||
Reference in New Issue
Block a user