summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2017-02-28 15:53:35 +0000
committerMatt Caswell <matt@openssl.org>2017-02-28 16:26:13 +0000
commite9ee653671b52327d608642662d83f91665d1167 (patch)
treecf6c0d8488e583b2e2ea0e304e810bbe45eda015 /test
parentc5055adf35772384ebc59e251acfc5276d4a153a (diff)
Fix sslapitest when compiled with no-tls1_2
Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/2788)
Diffstat (limited to 'test')
-rw-r--r--test/sslapitest.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/sslapitest.c b/test/sslapitest.c
index f492e0bae4..4b5e8c07a0 100644
--- a/test/sslapitest.c
+++ b/test/sslapitest.c
@@ -477,6 +477,7 @@ end:
}
#endif
+#ifndef OPENSSL_NO_TLS1_2
static int full_early_callback(SSL *s, int *al, void *arg)
{
int *ctr = arg;
@@ -559,6 +560,7 @@ end:
return testresult;
}
+#endif
static int execute_test_large_message(const SSL_METHOD *smeth,
const SSL_METHOD *cmeth, int read_ahead)
@@ -1568,7 +1570,9 @@ int test_main(int argc, char *argv[])
#ifndef OPENSSL_NO_TLS1_3
ADD_TEST(test_keylog_no_master_key);
#endif
+#ifndef OPENSSL_NO_TLS1_2
ADD_TEST(test_early_cb);
+#endif
testresult = run_tests(argv[0]);