Fix for PKCS7 heap hint in API unit test.

This commit is contained in:
David Garske
2021-08-17 10:46:53 -07:00
parent e1f603301b
commit a9b8b6d3de

View File

@ -26098,6 +26098,10 @@ static void test_wc_PKCS7_EncodeEncryptedData (void)
wc_PKCS7_Free(pkcs7);
}
}
if (pkcs7 == NULL || testSz == 0) {
AssertNotNull(pkcs7 = wc_PKCS7_New(HEAP_HINT, devId));
AssertIntEQ(wc_PKCS7_Init(pkcs7, HEAP_HINT, devId), 0);
}
printf(testingFmt, "wc_PKCS7_EncodeEncryptedData()");
AssertIntEQ(wc_PKCS7_EncodeEncryptedData(NULL, encrypted,