certread.c (basilisk-2021.12.14-source.tar.xz) | : | certread.c (basilisk-2022.01.27-source.tar.xz) | ||
---|---|---|---|---|
skipping to change at line 142 | skipping to change at line 142 | |||
PORT_Memset(&contentInfo, 0, sizeof(contentInfo)); | PORT_Memset(&contentInfo, 0, sizeof(contentInfo)); | |||
if (SEC_ASN1DecodeItem(arena, &contentInfo, ContentInfoTemplate, | if (SEC_ASN1DecodeItem(arena, &contentInfo, ContentInfoTemplate, | |||
pkcs7Item) != SECSuccess) { | pkcs7Item) != SECSuccess) { | |||
goto done; | goto done; | |||
} | } | |||
if (GetContentTypeTag(&contentInfo) != SEC_OID_PKCS7_SIGNED_DATA) { | if (GetContentTypeTag(&contentInfo) != SEC_OID_PKCS7_SIGNED_DATA) { | |||
goto done; | goto done; | |||
} | } | |||
if (contentInfo.content.signedData == NULL) { | ||||
PORT_SetError(SEC_ERROR_BAD_DER); | ||||
goto done; | ||||
} | ||||
rv = SECSuccess; | rv = SECSuccess; | |||
certs = contentInfo.content.signedData->certificates; | certs = contentInfo.content.signedData->certificates; | |||
if (certs) { | if (certs) { | |||
count = 0; | count = 0; | |||
while (*certs) { | while (*certs) { | |||
count++; | count++; | |||
certs++; | certs++; | |||
} | } | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 5 lines changed or added |