aboutsummaryrefslogtreecommitdiff
path: root/test/handshake_helper.c
diff options
context:
space:
mode:
authorEmilia Kasper <emilia@openssl.org>2016-08-10 18:36:47 +0200
committerEmilia Kasper <emilia@openssl.org>2016-08-10 18:46:06 +0200
commitbe82f7b32087496d94edaa309a7b2ea9a8c84e1d (patch)
tree4f49ac8b8d75a79fe173ce89d37f898bab82bdda /test/handshake_helper.c
parente86e76a6c4744244104838700eebeb54209b5827 (diff)
downloadopenssl-be82f7b32087496d94edaa309a7b2ea9a8c84e1d.zip
openssl-be82f7b32087496d94edaa309a7b2ea9a8c84e1d.tar.gz
openssl-be82f7b32087496d94edaa309a7b2ea9a8c84e1d.tar.bz2
Don't attempt to load the CT log list with no-ec
In practice, CT isn't really functional without EC anyway, as most logs use EC keys. So, skip loading the log list with no-ec, and skip CT tests completely in that conf. Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'test/handshake_helper.c')
-rw-r--r--test/handshake_helper.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/handshake_helper.c b/test/handshake_helper.c
index 3e7f129..ee87512 100644
--- a/test/handshake_helper.c
+++ b/test/handshake_helper.c
@@ -376,7 +376,8 @@ static void configure_handshake_ctx(SSL_CTX *server_ctx, SSL_CTX *server2_ctx,
ticket_key_len) == 1);
OPENSSL_free(ticket_keys);
-#ifndef OPENSSL_NO_CT
+ /* The default log list includes EC keys, so CT can't work without EC. */
+#if !defined(OPENSSL_NO_CT) && !defined(OPENSSL_NO_EC)
TEST_check(SSL_CTX_set_default_ctlog_list_file(client_ctx));
switch (extra->client.ct_validation) {
case SSL_TEST_CT_VALIDATION_PERMISSIVE: