mirror of
https://gitee.com/openharmony/security_certificate_framework
synced 2024-11-23 06:29:41 +00:00
修复黄蓝差异
Signed-off-by: hhhFun <fanghaojie@huawei.com>
This commit is contained in:
parent
d157f4f8ba
commit
82eb707fba
@ -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) {
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user