mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-08-05 10:47:48 +00:00
Add in the two additional checks that were dropped.
Co-authored-by: Ronald Cron <[email protected]> Signed-off-by: Ben Taylor <[email protected]>
This commit is contained in:
committed by
Ben Taylor
co-authored by
Ronald Cron
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);
|
||||
|
||||
Reference in New Issue
Block a user