mirror of
https://gitee.com/openharmony/security_certificate_framework
synced 2024-11-23 06:29:41 +00:00
commit
5d9f69b667
@ -964,8 +964,8 @@ static CfResult GetSigAlgParamsX509Openssl(HcfX509CertificateSpi *self, CfBlob *
|
||||
static CfResult ConvertAsn1String2BoolArray(const ASN1_BIT_STRING *string, CfBlob *boolArr)
|
||||
{
|
||||
uint32_t length = ASN1_STRING_length(string) * CHAR_TO_BIT_LEN;
|
||||
if (string->flags & ASN1_STRING_FLAG_BITS_LEFT) {
|
||||
length -= string->flags & FLAG_BIT_LEFT_NUM;
|
||||
if ((uint32_t)(string->flags) & ASN1_STRING_FLAG_BITS_LEFT) {
|
||||
length -= (uint32_t)(string->flags) & FLAG_BIT_LEFT_NUM;
|
||||
}
|
||||
boolArr->data = (uint8_t *)CfMalloc(length, 0);
|
||||
if (boolArr->data == NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user