forked from wolfSSL/wolfssl
Fix FILE pointer not closed in tests/api.c
This commit is contained in:
@ -32315,6 +32315,7 @@ static int test_wolfSSL_PEM_RSAPrivateKey(void)
|
|||||||
AssertNotNull((rsa = PEM_read_RSAPrivateKey(f, NULL, NULL, NULL)));
|
AssertNotNull((rsa = PEM_read_RSAPrivateKey(f, NULL, NULL, NULL)));
|
||||||
AssertIntEQ(RSA_size(rsa), 256);
|
AssertIntEQ(RSA_size(rsa), 256);
|
||||||
RSA_free(rsa);
|
RSA_free(rsa);
|
||||||
|
XFCLOSE(f);
|
||||||
|
|
||||||
#ifdef HAVE_ECC
|
#ifdef HAVE_ECC
|
||||||
AssertNotNull(bio = BIO_new_file(eccKeyFile, "rb"));
|
AssertNotNull(bio = BIO_new_file(eccKeyFile, "rb"));
|
||||||
|
Reference in New Issue
Block a user