From a6ad6b94d1c9941b4101e862bee6265d183431db Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Mon, 14 May 2018 16:03:51 -0600 Subject: [PATCH] account for IGNORE_NAME_CONSTRAINTS when testing the parsing of a relative URI --- tests/api.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/api.c b/tests/api.c index 4a470efde..d6547e61f 100644 --- a/tests/api.c +++ b/tests/api.c @@ -2974,7 +2974,11 @@ static void test_wolfSSL_URI(void) wolfSSL_FreeX509(x509); x509 = wolfSSL_X509_load_certificate_file(badUri, WOLFSSL_FILETYPE_PEM); +#ifndef IGNORE_NAME_CONSTRAINTS AssertNull(x509); +#else + AssertNotNull(x509); +#endif printf(resultFmt, passed); #endif