Skip to content

Commit

Permalink
sslapitest: only compile test when it will be used
Browse files Browse the repository at this point in the history
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 <tmraz@fedoraproject.org>
(Merged from #11458)
  • Loading branch information
kaduk committed Apr 27, 2020
1 parent af0d413 commit fb12163
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/sslapitest.c
Expand Up @@ -659,7 +659,6 @@ static int test_no_ems(void)

return testresult;
}
#endif

/*
* Very focused test to exercise a single case in the server-side state
Expand Down Expand Up @@ -771,6 +770,7 @@ static int test_ccs_change_cipher(void)

return testresult;
}
#endif

static int execute_test_large_message(const SSL_METHOD *smeth,
const SSL_METHOD *cmeth,
Expand Down

0 comments on commit fb12163

Please sign in to comment.