修复黄蓝差异

Signed-off-by: hhhFun <fanghaojie@huawei.com>
This commit is contained in:
hhhFun 2024-07-05 21:54:38 +08:00
parent d157f4f8ba
commit 82eb707fba
2 changed files with 2 additions and 1 deletions

View File

@ -270,6 +270,7 @@ static CfResult GetAuKeyIdDNX509Openssl(HcfX509CertificateSpi *self, CfBlob *out
LOGE("Failed to get authority key identifier!");
return CF_ERR_CRYPTO_OPERATION;
}
unsigned char *akidBytes = NULL;
int32_t akidLen = i2d_AUTHORITY_KEYID(akid, &akidBytes);
if (akidLen <= 0) {

View File

@ -88,7 +88,7 @@ namespace OHOS {
if (data == nullptr || size < 1) {
return false;
}
uint8_t *testData = (uint8_t *)CfMalloc(size + 1, sizeof(uint8_t));
uint8_t *testData = static_cast<uint8_t *>(CfMalloc(size + 1, sizeof(uint8_t)));
if (testData == nullptr) {
return false;
}