]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
test/quicapitest.c: Fix build with no-ssl-trace
authorTomas Mraz <tomas@openssl.org>
Tue, 18 Feb 2025 07:42:12 +0000 (08:42 +0100)
committerTomas Mraz <tomas@openssl.org>
Thu, 20 Feb 2025 09:48:54 +0000 (10:48 +0100)
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26810)

test/quicapitest.c

index 1a483f6c182d28bec6a480bfefb85006eceb22b7..c324f28997a5ce368592ecab9e7bffaffb0e8d42 100644 (file)
@@ -554,6 +554,7 @@ static int test_ssl_trace(void)
 }
 #endif
 
+#ifndef OPENSSL_NO_SSL_TRACE
 enum {
     INITIAL = 0,
     GATHER_TOKEN = 1,
@@ -687,6 +688,7 @@ static int test_new_token(void)
 
     return testresult;
 }
+#endif
 
 static int ensure_valid_ciphers(const STACK_OF(SSL_CIPHER) *ciphers)
 {
@@ -2738,7 +2740,9 @@ int setup_tests(void)
     ADD_TEST(test_domain_flags);
     ADD_TEST(test_early_ticks);
     ADD_TEST(test_ssl_new_from_listener);
+#ifndef OPENSSL_NO_SSL_TRACE
     ADD_TEST(test_new_token);
+#endif
     return 1;
  err:
     cleanup_tests();