account for IGNORE_NAME_CONSTRAINTS when testing the parsing of a relative URI

This commit is contained in:
Jacob Barthelmeh
2018-05-14 16:03:51 -06:00
parent 63a0e872c5
commit a6ad6b94d1

View File

@ -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