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)

(cherry picked from commit fb12163)
  • Loading branch information
kaduk committed Apr 27, 2020
1 parent 1ab9298 commit 0f1f0bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/sslapitest.c
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,6 @@ static int test_client_hello_cb(void)

return testresult;
}
#endif

/*
* Very focused test to exercise a single case in the server-side state
Expand Down Expand Up @@ -702,6 +701,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 0f1f0bf

Please sign in to comment.