mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
account for IGNORE_NAME_CONSTRAINTS when testing the parsing of a relative URI
This commit is contained in:
@@ -2974,7 +2974,11 @@ static void test_wolfSSL_URI(void)
|
|||||||
wolfSSL_FreeX509(x509);
|
wolfSSL_FreeX509(x509);
|
||||||
|
|
||||||
x509 = wolfSSL_X509_load_certificate_file(badUri, WOLFSSL_FILETYPE_PEM);
|
x509 = wolfSSL_X509_load_certificate_file(badUri, WOLFSSL_FILETYPE_PEM);
|
||||||
|
#ifndef IGNORE_NAME_CONSTRAINTS
|
||||||
AssertNull(x509);
|
AssertNull(x509);
|
||||||
|
#else
|
||||||
|
AssertNotNull(x509);
|
||||||
|
#endif
|
||||||
|
|
||||||
printf(resultFmt, passed);
|
printf(resultFmt, passed);
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user