From: Benjamin Kaduk Date: Wed, 1 Apr 2020 20:51:40 +0000 (-0700) Subject: sslapitest: only compile test when it will be used X-Git-Tag: openssl-3.0.0-alpha2~149 X-Git-Url: https://git.librecmc.org/?p=oweals%2Fopenssl.git;a=commitdiff_plain;h=fb121631e702352d47049ac8e2e709b11c3318e4 sslapitest: only compile test when it will be used The test_ccs_change_cipher() test routine is used only when TLS 1.2 is enabled; to fix the strict-warnings build we should not try to compile it when TLS 1.2 is disabled, either. Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/11458) --- diff --git a/test/sslapitest.c b/test/sslapitest.c index f9349bc59b..779176a0f1 100644 --- a/test/sslapitest.c +++ b/test/sslapitest.c @@ -659,7 +659,6 @@ end: return testresult; } -#endif /* * Very focused test to exercise a single case in the server-side state @@ -771,6 +770,7 @@ end: return testresult; } +#endif static int execute_test_large_message(const SSL_METHOD *smeth, const SSL_METHOD *cmeth,