From: Bernd Edlinger Date: Fri, 17 Jun 2022 08:25:24 +0000 (+0200) Subject: Fix compile issues in test/v3ext.c with no-rfc3779 X-Git-Tag: OpenSSL_1_1_1q~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c1cf6d39bb8e85658ac8c743dcff8ede730f76a;p=thirdparty%2Fopenssl.git Fix compile issues in test/v3ext.c with no-rfc3779 There are no ASIdentifiers if OPENSSL_NO_RFC3779 is defined, therefore the test cannot be compiled. Reviewed-by: Matt Caswell Reviewed-by: Tomas Mraz Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/18634) (cherry picked from commit b76efe61ea9710a8f69e1cb8caf1aeb2ba6f1ebe) (cherry picked from commit 665ab12ed3f0d78e7cb6a55cdd2b83a2fe150232) --- diff --git a/test/v3ext.c b/test/v3ext.c index ac4a3e54023..bc259ca950d 100644 --- a/test/v3ext.c +++ b/test/v3ext.c @@ -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; }