From e0e43b6a1619fd9e2c372dae547437129259ce2a Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Tue, 19 Oct 2021 22:14:04 -0600 Subject: [PATCH] clean up test case --- tests/api.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/api.c b/tests/api.c index 6847ac556..e0407ce67 100644 --- a/tests/api.c +++ b/tests/api.c @@ -1934,7 +1934,7 @@ static void test_wolfSSL_CertManagerNameConstraint3(void) AssertIntEQ(X509_NAME_add_entry_by_txt(name, "commonName", MBSTRING_UTF8, (byte*)"wolfssl.com", 11, -1, 0), SSL_SUCCESS); AssertIntEQ(X509_NAME_add_entry_by_txt(name, "emailAddress", MBSTRING_UTF8, - (byte*)"support@info.com", 24, -1, 0), SSL_SUCCESS); + (byte*)"support@info.com", 16, -1, 0), SSL_SUCCESS); AssertIntEQ(wolfSSL_X509_set_subject_name(x509, name), WOLFSSL_SUCCESS); X509_NAME_free(name); @@ -1957,7 +1957,6 @@ static void test_wolfSSL_CertManagerNameConstraint3(void) AssertNotNull((der = (byte*)wolfSSL_X509_get_der(x509, &derSz))); AssertIntEQ(wolfSSL_CertManagerVerifyBuffer(cm, der, derSz, WOLFSSL_FILETYPE_ASN1), ASN_NAME_INVALID_E); - wolfSSL_X509_free(x509); wolfSSL_CertManagerFree(cm); wolfSSL_X509_free(x509);