mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-07-30 16:26:33 +08:00
Add in the two additional checks that were dropped.
Co-authored-by: Ronald Cron <ronald.cron@arm.com> Signed-off-by: Ben Taylor <32939606+bjwtaylor@users.noreply.github.com>
This commit is contained in:
parent
10afc1ed5c
commit
377aa4eff1
@ -101,6 +101,8 @@ void pkcs7_parse_reuse(char *first_pkcs7_file, char *second_pkcs7_file,
|
||||
MBEDTLS_PKCS7_SIGNED_DATA);
|
||||
|
||||
mbedtls_pkcs7_free(&pkcs7);
|
||||
TEST_ASSERT(pkcs7.raw.p == NULL);
|
||||
TEST_ASSERT(pkcs7.signed_data.signers.next == NULL);
|
||||
TEST_EQUAL(mbedtls_pkcs7_parse_der(&pkcs7, second_pkcs7_buf,
|
||||
second_buflen),
|
||||
res_expect);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user