Fix compile issues in test/v3ext.c with no-rfc3779
[openssl.git] / test / v3ext.c
index ac4a3e54023dc85886c5813f9435fb613a45b953..bc259ca950dd6d643c8960c36e29a52878451cda 100644 (file)
@@ -37,6 +37,7 @@ end:
     return ret;
 }
 
+#ifndef OPENSSL_NO_RFC3779
 static int test_asid(void)
 {
     ASN1_INTEGER *val1 = NULL, *val2 = NULL;
@@ -113,6 +114,7 @@ static int test_asid(void)
     ASIdentifiers_free(asid4);
     return testresult;
 }
+#endif /* OPENSSL_NO_RFC3779 */
 
 int setup_tests(void)
 {
@@ -120,6 +122,8 @@ int setup_tests(void)
         return 0;
 
     ADD_TEST(test_pathlen);
+#ifndef OPENSSL_NO_RFC3779
     ADD_TEST(test_asid);
+#endif /* OPENSSL_NO_RFC3779 */
     return 1;
 }