Skip to content

Commit

Permalink
Fix compile issues in test/v3ext.c with no-rfc3779
Browse files Browse the repository at this point in the history
There are no ASIdentifiers if OPENSSL_NO_RFC3779 is defined,
therefore the test cannot be compiled.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from openssl#18634)
  • Loading branch information
bernd-edlinger committed Jun 23, 2022
1 parent a09adac commit b76efe6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/v3ext.c
Expand Up @@ -37,6 +37,7 @@ static int test_pathlen(void)
return ret;
}

#ifndef OPENSSL_NO_RFC3779
static int test_asid(void)
{
ASN1_INTEGER *val1 = NULL, *val2 = NULL;
Expand Down Expand Up @@ -113,6 +114,7 @@ static int test_asid(void)
ASIdentifiers_free(asid4);
return testresult;
}
#endif /* OPENSSL_NO_RFC3779 */

OPT_TEST_DECLARE_USAGE("cert.pem\n")

Expand All @@ -127,6 +129,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;
}

0 comments on commit b76efe6

Please sign in to comment.