free test case object

This commit is contained in:
JacobBarthelmeh
2021-08-04 01:34:33 -07:00
committed by Jacob Barthelmeh
parent ff521a14e4
commit 3d8dc68266

View File

@@ -27802,6 +27802,7 @@ static void test_wolfSSL_certs(void)
#ifdef OPENSSL_ALL #ifdef OPENSSL_ALL
X509* x509; X509* x509;
WOLFSSL_X509_EXTENSION* ext; WOLFSSL_X509_EXTENSION* ext;
ASN1_OBJECT* obj;
#endif #endif
WOLFSSL* ssl; WOLFSSL* ssl;
WOLFSSL_CTX* ctx; WOLFSSL_CTX* ctx;
@@ -27883,8 +27884,9 @@ static void test_wolfSSL_certs(void)
AssertNotNull(ext = X509_EXTENSION_new()); AssertNotNull(ext = X509_EXTENSION_new());
X509_EXTENSION_set_critical(ext, 1); X509_EXTENSION_set_critical(ext, 1);
AssertIntEQ(X509_EXTENSION_set_object(ext, AssertNotNull(obj = OBJ_nid2obj(NID_basic_constraints));
OBJ_nid2obj(NID_basic_constraints)), SSL_SUCCESS); AssertIntEQ(X509_EXTENSION_set_object(ext, obj), SSL_SUCCESS);
ASN1_OBJECT_free(obj);
X509_EXTENSION_free(ext); X509_EXTENSION_free(ext);
#endif #endif
AssertIntEQ(crit, 0); AssertIntEQ(crit, 0);