mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 04:04:39 +02:00
free PKCS7 before creating new in API test
This commit is contained in:
@@ -16850,6 +16850,7 @@ static void test_wc_PKCS7_EncodeSignedData(void)
|
|||||||
!defined(NO_RSA) && !defined(NO_SHA256)
|
!defined(NO_RSA) && !defined(NO_SHA256)
|
||||||
/* test RSA sign raw digest callback, if using RSA and compiled in.
|
/* test RSA sign raw digest callback, if using RSA and compiled in.
|
||||||
* Example callback assumes SHA-256, so only run test if compiled in. */
|
* Example callback assumes SHA-256, so only run test if compiled in. */
|
||||||
|
wc_PKCS7_Free(pkcs7);
|
||||||
AssertNotNull(pkcs7 = wc_PKCS7_New(HEAP_HINT, devId));
|
AssertNotNull(pkcs7 = wc_PKCS7_New(HEAP_HINT, devId));
|
||||||
AssertIntEQ(wc_PKCS7_InitWithCert(pkcs7, cert, certSz), 0);
|
AssertIntEQ(wc_PKCS7_InitWithCert(pkcs7, cert, certSz), 0);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user